Simple Question (Direct)
Simple Question
Q3035523
P1412
Q34770
USER
Which language is Dominique Vien capable of writing ?
(Q3035523,P1412,c(Q34770))
action filter_type
action find
entity Q3035523
relation P1412
type Q34770
['Q3035523', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q34770 . resource:Q3035523 property:P1412 ?f }
Dominique Vien
action filter_type
action find
entity Dominique Vien
relation languages spoken, written or signed
type language
['Dominique Vien', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:language . resource:Dominique_Vien property:languages_spoken,_written_or_signed ?f }
[]
language
Q1860
SYSTEM
English
Q1860
(Q3035523,P1412,c(Q34770))
action filter_type
action find
entity Q3035523
relation P1412
type Q34770
[ANSWER] is Dominique Vien capable of writing
['Q3035523', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q34770 . resource:Q3035523 property:P1412 ?f }
English
English is Dominique Vien capable of writing
English
action filter_type
action find
entity Dominique Vien
relation languages spoken, written or signed
type language
['Dominique Vien', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:language . resource:Dominique_Vien property:languages_spoken,_written_or_signed ?f }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3035523
P106
Q12737077
USER
What are the professions of Dominique Vien ?
(Q3035523,P106,c(Q12737077))
action filter_type
action find
entity Q3035523
relation P106
type Q12737077
['Q3035523', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q12737077 . resource:Q3035523 property:P106 ?h }
Dominique Vien
action filter_type
action find
entity Dominique Vien
relation occupation
type occupation
['Dominique Vien', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:occupation . resource:Dominique_Vien property:occupation ?h }
[]
occupation
Q1930187 Q82955
SYSTEM
journalist, politician
Q1930187 Q82955
(Q3035523,P106,c(Q12737077))
action filter_type
action find
entity Q3035523
relation P106
type Q12737077
The professions of Dominique Vien are a [ANSWERS]
['Q3035523', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q12737077 . resource:Q3035523 property:P106 ?h }
journalist politician
The professions of Dominique Vien are a journalist and politician
journalist politician
action filter_type
action find
entity Dominique Vien
relation occupation
type occupation
['Dominique Vien', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:occupation . resource:Dominique_Vien property:occupation ?h }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q3035523 Q8062467
P69
Q163740
USER
How many nonprofit organizations are the alma mater of Dominique Vien or Yvonne K. Fulbright ?
(Q3035523,P69,c(Q163740)) (Q8062467,P69,c(Q163740))
action count
action union
action filter_type
action find
entity Q3035523
relation P69
type Q163740
action filter_type
action find
entity Q8062467
relation P69
type Q163740
['Q3035523', 'P69', {'concept': 'Q163740'}] ['Q8062467', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?r ) WHERE { { resource:Q3035523 property:P69 ?p . ?p rdf:type ontology:Q163740 } UNION { resource:Q8062467 property:P69 ?p . ?p rdf:type ontology:Q163740 } }
Dominique Vien Yvonne K. Fulbright
action count
action union
action filter_type
action find
entity Dominique Vien
relation educated at
type nonprofit organization
action filter_type
action find
entity Yvonne K. Fulbright
relation educated at
type nonprofit organization
['Dominique Vien', 'educated at', {'concept': 'nonprofit organization'}] ['Yvonne K. Fulbright', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?r ) WHERE { { resource:Dominique_Vien property:educated_at ?p . ?p rdf:type ontology:nonprofit_organization } UNION { resource:Yvonne_K._Fulbright property:educated_at ?p . ?p rdf:type ontology:nonprofit_organization } }
[]
nonprofit organization
SYSTEM
2
Q49117 Q49210
(Q3035523,P69,c(Q163740)) (Q8062467,P69,c(Q163740))
action count
action union
action filter_type
action find
entity Q3035523
relation P69
type Q163740
action filter_type
action find
entity Q8062467
relation P69
type Q163740
[ANSWER]
['Q3035523', 'P69', {'concept': 'Q163740'}] ['Q8062467', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?r ) WHERE { { resource:Q3035523 property:P69 ?p . ?p rdf:type ontology:Q163740 } UNION { resource:Q8062467 property:P69 ?p . ?p rdf:type ontology:Q163740 } }
University of Pennsylvania New York University
2
action count
action union
action filter_type
action find
entity Dominique Vien
relation educated at
type nonprofit organization
action filter_type
action find
entity Yvonne K. Fulbright
relation educated at
type nonprofit organization
['Dominique Vien', 'educated at', {'concept': 'nonprofit organization'}] ['Yvonne K. Fulbright', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?r ) WHERE { { resource:Dominique_Vien property:educated_at ?p . ?p rdf:type ontology:nonprofit_organization } UNION { resource:Yvonne_K._Fulbright property:educated_at ?p . ?p rdf:type ontology:nonprofit_organization } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3035523
P21
Q290
USER
Which sex does that person have ?
action filter_type
action find
entity Q3035523
relation P21
type Q290
SELECT DISTINCT ?a WHERE { resource:Q3035523 property:P21 ?a . ?a rdf:type ontology:Q290 }
Dominique Vien
action filter_type
action find
entity Dominique Vien
relation gender
type sex
SELECT DISTINCT ?a WHERE { resource:Dominique_Vien property:gender ?a . ?a rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
action filter_type
action find
entity Q3035523
relation P21
type Q290
That person has a [ANSWER]
SELECT DISTINCT ?a WHERE { resource:Q3035523 property:P21 ?a . ?a rdf:type ontology:Q290 }
female
That person has a female
female
action filter_type
action find
entity Dominique Vien
relation gender
type sex
SELECT DISTINCT ?a WHERE { resource:Dominique_Vien property:gender ?a . ?a rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q5010774 Q3035523
P27 P17
Q1048835
USER
Which political territories are Dominique Vien an inhabitant of or do CFQM-FM belong to ?
OR((Q3035523,P27,c(Q1048835)), (Q5010774,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q3035523
relation P27
action find
entity Q5010774
relation P17
type Q1048835
{'OR': [['Q3035523', 'P27', {'concept': 'Q1048835'}], ['Q5010774', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q3035523 property:P27 ?f } UNION { resource:Q5010774 property:P17 ?f } } . ?f rdf:type ontology:Q1048835 }
CFQM-FM Dominique Vien
action filter_type
action union
action find
entity Dominique Vien
relation country of citizenship
action find
entity CFQM-FM
relation country
type political territorial entity
{'OR': [['Dominique Vien', 'country of citizenship', {'concept': 'political territorial entity'}], ['CFQM-FM', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Dominique_Vien property:country_of_citizenship ?f } UNION { resource:CFQM-FM property:country ?f } } . ?f rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16
SYSTEM
Canada
Q16
OR((Q3035523,P27,c(Q1048835)), (Q5010774,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q3035523
relation P27
action find
entity Q5010774
relation P17
type Q1048835
[ANSWER] is Dominique Vien an inhabitant of or do CFQM-FM belong to
{'OR': [['Q3035523', 'P27', {'concept': 'Q1048835'}], ['Q5010774', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Q3035523 property:P27 ?f } UNION { resource:Q5010774 property:P17 ?f } } . ?f rdf:type ontology:Q1048835 }
Canada
Canada is Dominique Vien an inhabitant of or do CFQM-FM belong to
Canada
action filter_type
action union
action find
entity Dominique Vien
relation country of citizenship
action find
entity CFQM-FM
relation country
type political territorial entity
{'OR': [['Dominique Vien', 'country of citizenship', {'concept': 'political territorial entity'}], ['CFQM-FM', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?f WHERE { { { resource:Dominique_Vien property:country_of_citizenship ?f } UNION { resource:CFQM-FM property:country ?f } } . ?f rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1930187
P425
Q12737077
USER
Who has journalist as the associated field of occupation ?
(Q1930187,P425,c(Q12737077))
action filter_type
action find
entity Q1930187
relation P425
type Q12737077
['Q1930187', 'P425', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { resource:Q1930187 property:P425 ?j . ?j rdf:type ontology:Q12737077 }
journalist
action filter_type
action find
entity journalist
relation field of this occupation
type occupation
['journalist', 'field of this occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { resource:journalist property:field_of_this_occupation ?j . ?j rdf:type ontology:occupation }
[]
occupation
Q36180
SYSTEM
writer
Q36180
(Q1930187,P425,c(Q12737077))
action filter_type
action find
entity Q1930187
relation P425
type Q12737077
The [ANSWER] has journalist as the associated field of occupation
['Q1930187', 'P425', {'concept': 'Q12737077'}]
SELECT DISTINCT ?j WHERE { resource:Q1930187 property:P425 ?j . ?j rdf:type ontology:Q12737077 }
writer
The writer has journalist as the associated field of occupation
writer
action filter_type
action find
entity journalist
relation field of this occupation
type occupation
['journalist', 'field of this occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?j WHERE { resource:journalist property:field_of_this_occupation ?j . ?j rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q36180
P937
Q502895
USER
Which person have that occupation as their work location ?
(c(Q502895),P937,Q36180)
action filter_type
action find_reverse
entity Q36180
relation P937
type Q502895
[{'concept': 'Q502895'}, 'P937', 'Q36180']
SELECT DISTINCT ?e WHERE { ?e property:P937 resource:Q36180 . ?e rdf:type ontology:Q502895 }
writer
action filter_type
action find_reverse
entity writer
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'writer']
SELECT DISTINCT ?e WHERE { ?e property:work_location resource:writer . ?e rdf:type ontology:common_name }
[]
common name
Q3398852
SYSTEM
Lidija Dimkovska
Q3398852
(c(Q502895),P937,Q36180)
action filter_type
action find_reverse
entity Q36180
relation P937
type Q502895
[ANSWER] have that occupation as their work location
[{'concept': 'Q502895'}, 'P937', 'Q36180']
SELECT DISTINCT ?e WHERE { ?e property:P937 resource:Q36180 . ?e rdf:type ontology:Q502895 }
Lidija Dimkovska
Lidija Dimkovska have that occupation as their work location
Lidija Dimkovska
action filter_type
action find_reverse
entity writer
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'writer']
SELECT DISTINCT ?e WHERE { ?e property:work_location resource:writer . ?e rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q45199
P180
Q12737077 Q11060274 Q838948
USER
How many occupations are demonstrated in more number of prints or works of art than sailor ?
(c(Q11060274)|c(Q838948),P180,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q11060274
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q45199
relation P180
type Q11060274
type Q838948
[[{'concept': 'Q11060274'}, {'concept': 'Q838948'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) ?s WHERE { VALUES ( ?m ) { ( ontology:Q838948 ) ( ontology:Q11060274 ) } . ?h rdf:type ?m } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?a ) WHERE { ?r property:P180 resource:Q45199 . { ?r rdf:type ?u . VALUES ( ?u ) { ( ontology:Q11060274 ) ( ontology:Q838948 ) } } } } . FILTER ( ?p > ?a ) }
sailor
action count
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type print
action find_reverse_tuple_counts
relation depicts
type occupation
type work of art
action count
action filter_multi_types
action find_reverse
entity sailor
relation depicts
type print
type work of art
[[{'concept': 'print'}, {'concept': 'work of art'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) ?s WHERE { VALUES ( ?m ) { ( ontology:work_of_art ) ( ontology:print ) } . ?h rdf:type ?m } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?a ) WHERE { ?r property:depicts resource:sailor . { ?r rdf:type ?u . VALUES ( ?u ) { ( ontology:print ) ( ontology:work_of_art ) } } } } . FILTER ( ?p > ?a ) }
[]
occupation print work of art
SYSTEM
58
Q2486919 Q177220 Q131512 Q27621374 Q36180 Q1250916 Q81710 Q1259917 Q329737 Q47064 Q483501 Q22085061 Q12902372 Q1028181 Q181765 Q805221 Q12059906 Q855855 Q19546 Q6116659 Q622630 Q3330547 Q3214532 Q2981922 Q4991371 Q376924 Q13381689 Q178521 Q3127709 Q1639825 Q54128 Q45722 Q848466 Q20489032 Q1509714 Q2730732 Q965417 Q845929 Q11063 Q5716684 Q170779 Q3128486 Q1627992 Q2309784 Q838811 Q2251335 Q189290 Q331432 Q639669 Q49757 Q15296811 Q1281618 Q432386 Q42603 Q39631 Q842606 Q2340797 Q156839
(c(Q11060274)|c(Q838948),P180,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q11060274
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q45199
relation P180
type Q11060274
type Q838948
[ANSWER]
[[{'concept': 'Q11060274'}, {'concept': 'Q838948'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) ?s WHERE { VALUES ( ?m ) { ( ontology:Q838948 ) ( ontology:Q11060274 ) } . ?h rdf:type ?m } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?a ) WHERE { ?r property:P180 resource:Q45199 . { ?r rdf:type ?u . VALUES ( ?u ) { ( ontology:Q11060274 ) ( ontology:Q838948 ) } } } } . FILTER ( ?p > ?a ) }
standard-bearer singer farmer bear hunter writer warrior shepherd violinist butcher military personnel artist sower flautist painter Holy Roman Emperor ballet dancer herder page pope priestess odalisque chronicler plowman American pioneer soldier courtesan discus thrower cowboy harpist blacksmith domestic worker cardinal courier salt pan worker porter equestrian waterseller pretender astronomer dancer Kassandra high-ranking civil servant in France lady's maid sport cyclist peasant school teacher officer fisherman musician poet draughtsperson sculptor preacher priest physician Roman emperor quarryman cook
58
action count
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type print
action find_reverse_tuple_counts
relation depicts
type occupation
type work of art
action count
action filter_multi_types
action find_reverse
entity sailor
relation depicts
type print
type work of art
[[{'concept': 'print'}, {'concept': 'work of art'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) ?s WHERE { VALUES ( ?m ) { ( ontology:work_of_art ) ( ontology:print ) } . ?h rdf:type ?m } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?a ) WHERE { ?r property:depicts resource:sailor . { ?r rdf:type ?u . VALUES ( ?u ) { ( ontology:print ) ( ontology:work_of_art ) } } } } . FILTER ( ?p > ?a ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q19968805
P180
Q12737077 Q11060274 Q838948
USER
And also tell me about spinner?
(c(Q11060274)|c(Q838948),P180,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q11060274
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q19968805
relation P180
type Q11060274
type Q838948
[[{'concept': 'Q11060274'}, {'concept': 'Q838948'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?c ) ?r WHERE { { ?g property:P180 ?r . ?r rdf:type ontology:Q12737077 . ?g rdf:type ontology:Q11060274 } UNION { ?g property:P180 ?r . ?r rdf:type ontology:Q12737077 . ?g rdf:type ontology:Q838948 } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?t ) WHERE { { { ?v rdf:type ontology:Q838948 } UNION { ?v rdf:type ontology:Q11060274 } } . ?v property:P180 resource:Q19968805 } } . FILTER ( ?c > ?t ) }
spinner
action count
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type print
action find_reverse_tuple_counts
relation depicts
type occupation
type work of art
action count
action filter_multi_types
action find_reverse
entity spinner
relation depicts
type print
type work of art
[[{'concept': 'print'}, {'concept': 'work of art'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?c ) ?r WHERE { { ?g property:depicts ?r . ?r rdf:type ontology:occupation . ?g rdf:type ontology:print } UNION { ?g property:depicts ?r . ?r rdf:type ontology:occupation . ?g rdf:type ontology:work_of_art } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?t ) WHERE { { { ?v rdf:type ontology:work_of_art } UNION { ?v rdf:type ontology:print } } . ?v property:depicts resource:spinner } } . FILTER ( ?c > ?t ) }
[]
occupation print work of art
SYSTEM
58
Q2486919 Q177220 Q131512 Q27621374 Q36180 Q1250916 Q81710 Q1259917 Q329737 Q47064 Q483501 Q22085061 Q12902372 Q1028181 Q181765 Q805221 Q12059906 Q855855 Q19546 Q6116659 Q622630 Q3330547 Q3214532 Q2981922 Q4991371 Q376924 Q13381689 Q178521 Q3127709 Q1639825 Q54128 Q45722 Q848466 Q20489032 Q1509714 Q2730732 Q965417 Q845929 Q11063 Q5716684 Q170779 Q3128486 Q1627992 Q2309784 Q838811 Q2251335 Q189290 Q331432 Q639669 Q49757 Q15296811 Q1281618 Q432386 Q42603 Q39631 Q842606 Q2340797 Q156839
(c(Q11060274)|c(Q838948),P180,c(Q12737077))
action count
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q11060274
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q19968805
relation P180
type Q11060274
type Q838948
[ANSWER]
[[{'concept': 'Q11060274'}, {'concept': 'Q838948'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?c ) ?r WHERE { { ?g property:P180 ?r . ?r rdf:type ontology:Q12737077 . ?g rdf:type ontology:Q11060274 } UNION { ?g property:P180 ?r . ?r rdf:type ontology:Q12737077 . ?g rdf:type ontology:Q838948 } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?t ) WHERE { { { ?v rdf:type ontology:Q838948 } UNION { ?v rdf:type ontology:Q11060274 } } . ?v property:P180 resource:Q19968805 } } . FILTER ( ?c > ?t ) }
standard-bearer singer farmer bear hunter writer warrior shepherd violinist butcher military personnel artist sower flautist painter Holy Roman Emperor ballet dancer herder page pope priestess odalisque chronicler plowman American pioneer soldier courtesan discus thrower cowboy harpist blacksmith domestic worker cardinal courier salt pan worker porter equestrian waterseller pretender astronomer dancer Kassandra high-ranking civil servant in France lady's maid sport cyclist peasant school teacher officer fisherman musician poet draughtsperson sculptor preacher priest physician Roman emperor quarryman cook
58
action count
action greater
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type print
action find_reverse_tuple_counts
relation depicts
type occupation
type work of art
action count
action filter_multi_types
action find_reverse
entity spinner
relation depicts
type print
type work of art
[[{'concept': 'print'}, {'concept': 'work of art'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?c ) ?r WHERE { { ?g property:depicts ?r . ?r rdf:type ontology:occupation . ?g rdf:type ontology:print } UNION { ?g property:depicts ?r . ?r rdf:type ontology:occupation . ?g rdf:type ontology:work_of_art } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?t ) WHERE { { { ?v rdf:type ontology:work_of_art } UNION { ?v rdf:type ontology:print } } . ?v property:depicts resource:spinner } } . FILTER ( ?c > ?t ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P725
Q502895 Q15619164
USER
Which abstract beings did max number of people do the dubbing for ?
(c(Q15619164),P725,c(Q502895))
action argmax
action find_tuple_counts
relation P725
type Q15619164
type Q502895
[{'concept': 'Q15619164'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?d ) { SELECT DISTINCT ?p ( COUNT ( ?z ) AS ?h ) WHERE { ?p property:P725 ?z . ?p rdf:type ontology:Q15619164 . ?z rdf:type ontology:Q502895 } GROUP BY ?p } } . { SELECT DISTINCT ?j ( COUNT ( ?x ) AS ?i ) WHERE { ?j property:P725 ?x . ?j rdf:type ontology:Q15619164 . ?x rdf:type ontology:Q502895 } GROUP BY ?j } . FILTER ( ?i = ?d ) }
action argmax
action find_tuple_counts
relation voice actor
type abstract being
type common name
[{'concept': 'abstract being'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?d ) { SELECT DISTINCT ?p ( COUNT ( ?z ) AS ?h ) WHERE { ?p property:voice_actor ?z . ?p rdf:type ontology:abstract_being . ?z rdf:type ontology:common_name } GROUP BY ?p } } . { SELECT DISTINCT ?j ( COUNT ( ?x ) AS ?i ) WHERE { ?j property:voice_actor ?x . ?j rdf:type ontology:abstract_being . ?x rdf:type ontology:common_name } GROUP BY ?j } . FILTER ( ?i = ?d ) }
[]
common name abstract being
Q5409355
SYSTEM
Fluttershy
Q5409355
(c(Q15619164),P725,c(Q502895))
action argmax
action find_tuple_counts
relation P725
type Q15619164
type Q502895
Max number of people did the dubbing for the [ANSWER]
[{'concept': 'Q15619164'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?d ) { SELECT DISTINCT ?p ( COUNT ( ?z ) AS ?h ) WHERE { ?p property:P725 ?z . ?p rdf:type ontology:Q15619164 . ?z rdf:type ontology:Q502895 } GROUP BY ?p } } . { SELECT DISTINCT ?j ( COUNT ( ?x ) AS ?i ) WHERE { ?j property:P725 ?x . ?j rdf:type ontology:Q15619164 . ?x rdf:type ontology:Q502895 } GROUP BY ?j } . FILTER ( ?i = ?d ) }
Fluttershy
Max number of people did the dubbing for the Fluttershy
Fluttershy
action argmax
action find_tuple_counts
relation voice actor
type abstract being
type common name
[{'concept': 'abstract being'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?d ) { SELECT DISTINCT ?p ( COUNT ( ?z ) AS ?h ) WHERE { ?p property:voice_actor ?z . ?p rdf:type ontology:abstract_being . ?z rdf:type ontology:common_name } GROUP BY ?p } } . { SELECT DISTINCT ?j ( COUNT ( ?x ) AS ?i ) WHERE { ?j property:voice_actor ?x . ?j rdf:type ontology:abstract_being . ?x rdf:type ontology:common_name } GROUP BY ?j } . FILTER ( ?i = ?d ) }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q5409355 Q15730520 Q15730777
P725
Q502895
USER
Has Fluttershy been dubbed by Vera Calacoci and Katrine Iven Strømsted ?
(Q5409355,P725,Q15730520) (Q5409355,P725,Q15730777)
action is_in
entity Q5409355
action intersection
action find_reverse
entity Q15730520
relation P725
action find_reverse
entity Q15730777
relation P725
['Q5409355', 'P725', 'Q15730520'] ['Q5409355', 'P725', 'Q15730777']
ASK WHERE { resource:Q5409355 property:P725 resource:Q15730777 . resource:Q5409355 property:P725 resource:Q15730520 }
Fluttershy Vera Calacoci Katrine Iven Strømsted
action is_in
entity Fluttershy
action intersection
action find_reverse
entity Vera Calacoci
relation voice actor
action find_reverse
entity Katrine Iven Strømsted
relation voice actor
['Fluttershy', 'voice actor', 'Vera Calacoci'] ['Fluttershy', 'voice actor', 'Katrine Iven Strømsted']
ASK WHERE { resource:Fluttershy property:voice_actor resource:Katrine_Iven_Strømsted . resource:Fluttershy property:voice_actor resource:Vera_Calacoci }
[]
common name
SYSTEM
YES
(Q5409355,P725,Q15730520) (Q5409355,P725,Q15730777)
action is_in
entity Q5409355
action intersection
action find_reverse
entity Q15730520
relation P725
action find_reverse
entity Q15730777
relation P725
[ANSWER]
['Q5409355', 'P725', 'Q15730520'] ['Q5409355', 'P725', 'Q15730777']
ASK WHERE { resource:Q5409355 property:P725 resource:Q15730777 . resource:Q5409355 property:P725 resource:Q15730520 }
Yes
action is_in
entity Fluttershy
action intersection
action find_reverse
entity Vera Calacoci
relation voice actor
action find_reverse
entity Katrine Iven Strømsted
relation voice actor
['Fluttershy', 'voice actor', 'Vera Calacoci'] ['Fluttershy', 'voice actor', 'Katrine Iven Strømsted']
ASK WHERE { resource:Fluttershy property:voice_actor resource:Katrine_Iven_Strømsted . resource:Fluttershy property:voice_actor resource:Vera_Calacoci }
[]