Simple Question (Direct)
Simple Question
Q1633971
P19
Q13220204
USER
Which administrative country subdivision is the place of birth of Marinus de Jong ?
(Q1633971,P19,c(Q13220204))
action filter_type
action find
entity Q1633971
relation P19
type Q13220204
['Q1633971', 'P19', {'concept': 'Q13220204'}]
SELECT DISTINCT ?e WHERE { resource:Q1633971 property:P19 ?e . ?e rdf:type ontology:Q13220204 }
Marinus de Jong
action filter_type
action find
entity Marinus de Jong
relation place of birth
type second-level administrative country subdivision
['Marinus de Jong', 'place of birth', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?e WHERE { resource:Marinus_de_Jong property:place_of_birth ?e . ?e rdf:type ontology:second-level_administrative_country_subdivision }
[]
second-level administrative country subdivision
Q9858
SYSTEM
Oosterhout
Q9858
(Q1633971,P19,c(Q13220204))
action filter_type
action find
entity Q1633971
relation P19
type Q13220204
[ANSWER] is the place of birth of Marinus de Jong
['Q1633971', 'P19', {'concept': 'Q13220204'}]
SELECT DISTINCT ?e WHERE { resource:Q1633971 property:P19 ?e . ?e rdf:type ontology:Q13220204 }
Oosterhout
Oosterhout is the place of birth of Marinus de Jong
Oosterhout
action filter_type
action find
entity Marinus de Jong
relation place of birth
type second-level administrative country subdivision
['Marinus de Jong', 'place of birth', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?e WHERE { resource:Marinus_de_Jong property:place_of_birth ?e . ?e rdf:type ontology:second-level_administrative_country_subdivision }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1633971
P27
Q15617994
USER
Which administrative territory is the native country of that person ?
(Q9858,P27,c(Q15617994))
action filter_type
action find
entity Q1633971
relation P27
type Q15617994
['Q9858', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q1633971 property:P27 ?m . ?m rdf:type ontology:Q15617994 }
Marinus de Jong
action filter_type
action find
entity Marinus de Jong
relation country of citizenship
type designation for an administrative territorial entity
['Oosterhout', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Marinus_de_Jong property:country_of_citizenship ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q31
SYSTEM
Belgium
Q31
(Q9858,P27,c(Q15617994))
action filter_type
action find
entity Q1633971
relation P27
type Q15617994
[ANSWER] is the native country of that person
['Q9858', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q1633971 property:P27 ?m . ?m rdf:type ontology:Q15617994 }
Belgium
Belgium is the native country of that person
Belgium
action filter_type
action find
entity Marinus de Jong
relation country of citizenship
type designation for an administrative territorial entity
['Oosterhout', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Marinus_de_Jong property:country_of_citizenship ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q31
P6
Q502895
USER
Which person is the head of government of that administrative territory ?
(Q31,P6,c(Q502895))
action filter_type
action find
entity Q31
relation P6
type Q502895
['Q31', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q31 property:P6 ?h . ?h rdf:type ontology:Q502895 }
Belgium
action filter_type
action find
entity Belgium
relation head of government
type common name
['Belgium', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:Belgium property:head_of_government ?h . ?h rdf:type ontology:common_name }
[]
common name
Q950958
SYSTEM
Charles Michel
Q950958
(Q31,P6,c(Q502895))
action filter_type
action find
entity Q31
relation P6
type Q502895
[ANSWER] is the head of government of that administrative territory
['Q31', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { resource:Q31 property:P6 ?h . ?h rdf:type ontology:Q502895 }
Charles Michel
Charles Michel is the head of government of that administrative territory
Charles Michel
action filter_type
action find
entity Belgium
relation head of government
type common name
['Belgium', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { resource:Belgium property:head_of_government ?h . ?h rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q950958 Q2218957
P7
Q502895
USER
Is that one a sibling of Mathieu Michel ?
(Q950958,P7,Q2218957)
action is_in
entity Q2218957
action find
entity Q950958
relation P7
['Q950958', 'P7', 'Q2218957']
ASK WHERE { resource:Q950958 property:P7 resource:Q2218957 }
Charles Michel Mathieu Michel
action is_in
entity Mathieu Michel
action find
entity Charles Michel
relation brother
['Charles Michel', 'brother', 'Mathieu Michel']
ASK WHERE { resource:Charles_Michel property:brother resource:Mathieu_Michel }
[]
common name
SYSTEM
YES
(Q950958,P7,Q2218957)
action is_in
entity Q2218957
action find
entity Q950958
relation P7
[ANSWER]
['Q950958', 'P7', 'Q2218957']
ASK WHERE { resource:Q950958 property:P7 resource:Q2218957 }
Yes
action is_in
entity Mathieu Michel
action find
entity Charles Michel
relation brother
['Charles Michel', 'brother', 'Mathieu Michel']
ASK WHERE { resource:Charles_Michel property:brother resource:Mathieu_Michel }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1081626 Q950958
P102
Q7210356
USER
Which political organizations are Charles Michel or Christian Roth affiliated with ?
OR((Q950958,P102,c(Q7210356)), (Q1081626,P102,c(Q7210356)))
action filter_type
action union
action find
entity Q950958
relation P102
action find
entity Q1081626
relation P102
type Q7210356
{'OR': [['Q950958', 'P102', {'concept': 'Q7210356'}], ['Q1081626', 'P102', {'concept': 'Q7210356'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q950958 property:P102 ?d } UNION { resource:Q1081626 property:P102 ?d } } . ?d rdf:type ontology:Q7210356 }
Christian Roth Charles Michel
action filter_type
action union
action find
entity Charles Michel
relation member of political party
action find
entity Christian Roth
relation member of political party
type political organization
{'OR': [['Charles Michel', 'member of political party', {'concept': 'political organization'}], ['Christian Roth', 'member of political party', {'concept': 'political organization'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Charles_Michel property:member_of_political_party ?d } UNION { resource:Christian_Roth property:member_of_political_party ?d } } . ?d rdf:type ontology:political_organization }
[]
political organization
Q533384 Q7320 Q158227 Q164866
SYSTEM
Reform Movement, Nazi Party, German National People's Party, National Socialist Freedom Movement
Q533384 Q7320 Q158227 Q164866
OR((Q950958,P102,c(Q7210356)), (Q1081626,P102,c(Q7210356)))
action filter_type
action union
action find
entity Q950958
relation P102
action find
entity Q1081626
relation P102
type Q7210356
Charles Michel or Christian Roth are affiliated with [ANSWERS]
{'OR': [['Q950958', 'P102', {'concept': 'Q7210356'}], ['Q1081626', 'P102', {'concept': 'Q7210356'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q950958 property:P102 ?d } UNION { resource:Q1081626 property:P102 ?d } } . ?d rdf:type ontology:Q7210356 }
Reform Movement Nazi Party German National People's Party National Socialist Freedom Movement
Charles Michel or Christian Roth are affiliated with Reform Movement, Nazi Party, German National People's Party and National Socialist Freedom Movement
Reform Movement Nazi Party German National People's Party National Socialist Freedom Movement
action filter_type
action union
action find
entity Charles Michel
relation member of political party
action find
entity Christian Roth
relation member of political party
type political organization
{'OR': [['Charles Michel', 'member of political party', {'concept': 'political organization'}], ['Christian Roth', 'member of political party', {'concept': 'political organization'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Charles_Michel property:member_of_political_party ?d } UNION { resource:Christian_Roth property:member_of_political_party ?d } } . ?d rdf:type ontology:political_organization }
[]
Clarification
Simple Question|Single Entity|Indirect
Q7320
P488
Q502895
USER
Who chaired that political organization ?
(Q7320,P488,c(Q502895))
action filter_type
action find
entity Q7320
relation P488
type Q502895
['Q7320', 'P488', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q7320 property:P488 ?j . ?j rdf:type ontology:Q502895 }
Nazi Party
action filter_type
action find
entity Nazi Party
relation chairperson
type common name
['Nazi Party', 'chairperson', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Nazi_Party property:chairperson ?j . ?j rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q533384
SYSTEM
Did you mean Reform Movement ?
Q533384 Q7320 Q158227 Q164866
(Q533384,P488,c(Q502895)) (Q7320,P488,c(Q502895)) (Q158227,P488,c(Q502895)) (Q164866,P488,c(Q502895))
[ANSWER]
['Q533384', 'P488', {'concept': 'Q502895'}] ['Q7320', 'P488', {'concept': 'Q502895'}] ['Q158227', 'P488', {'concept': 'Q502895'}] ['Q164866', 'P488', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q7320 property:P488 ?j . ?j rdf:type ontology:Q502895 }
Reform Movement Nazi Party German National People's Party National Socialist Freedom Movement
Did you mean Reform Movement ?
Reform Movement
['Reform Movement', 'chairperson', {'concept': 'common name'}] ['Nazi Party', 'chairperson', {'concept': 'common name'}] ["German National People's Party", 'chairperson', {'concept': 'common name'}] ['National Socialist Freedom Movement', 'chairperson', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Nazi_Party property:chairperson ?j . ?j rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Nazi Party. Could you tell me the answer for that?
(Q7320,P488,c(Q502895))
Q7320
['Q7320', 'P488', {'concept': 'Q502895'}]
['Nazi Party', 'chairperson', {'concept': 'common name'}]
[]
Q76989
SYSTEM
Anton Drexler
Q76989
(Q7320,P488,c(Q502895))
action filter_type
action find
entity Q7320
relation P488
type Q502895
[ANSWER] chaired that political organization
['Q7320', 'P488', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q7320 property:P488 ?j . ?j rdf:type ontology:Q502895 }
Anton Drexler
Anton Drexler chaired that political organization
Anton Drexler
action filter_type
action find
entity Nazi Party
relation chairperson
type common name
['Nazi Party', 'chairperson', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Nazi_Party property:chairperson ?j . ?j rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q626035
P1303
Q34379 Q502895
USER
How many musical instruments are played by around the same number of people as glockenspiel ?
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q626035
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?l ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?c ) AS ?k ) WHERE { ?c property:P1303 ?u . ?u rdf:type ontology:Q34379 . ?c rdf:type ontology:Q502895 } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) WHERE { resource:Q626035 property:P1303 ?r . ?r rdf:type ontology:Q34379 } } . FILTER ( ?k = ?n ) }
glockenspiel
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity glockenspiel
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?l ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?c ) AS ?k ) WHERE { ?c property:instrument ?u . ?u rdf:type ontology:musical_instrument . ?c rdf:type ontology:common_name } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) WHERE { resource:glockenspiel property:instrument ?r . ?r rdf:type ontology:musical_instrument } } . FILTER ( ?k = ?n ) }
[]
musical instrument common name
SYSTEM
60
Q80284 Q201129 Q424017 Q890073 Q80019 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q120585 Q713298 Q8371 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q626035
relation P1303
type Q34379
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?l ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?c ) AS ?k ) WHERE { ?c property:P1303 ?u . ?u rdf:type ontology:Q34379 . ?c rdf:type ontology:Q502895 } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) WHERE { resource:Q626035 property:P1303 ?r . ?r rdf:type ontology:Q34379 } } . FILTER ( ?k = ?n ) }
viola lyre acoustic bass guitar Body percussion double bass davul steel-string acoustic guitar Temple block Irish bouzouki maraca tonbak Twelve-string guitar harpsichord Nyckelharpa Ondioline Jinghu player piano electronic musical instrument vibraphone spoon timpani Wurlitzer electric piano string instrument clavinet Tsuzumi geomungo cello cabasa harmonium upright piano Bendir ondes Martenot tabla bodhrán Djembe glockenspiel Daxophone viola d'amore celesta toy piano cajón gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn morin khuur Timbales erhu wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar electronic keyboard drum Kayamb Paraguayan harp
60
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity glockenspiel
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?l ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?c ) AS ?k ) WHERE { ?c property:instrument ?u . ?u rdf:type ontology:musical_instrument . ?c rdf:type ontology:common_name } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?n ) WHERE { resource:glockenspiel property:instrument ?r . ?r rdf:type ontology:musical_instrument } } . FILTER ( ?k = ?n ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q1759986
P1303
Q34379 Q502895
USER
And how about Wurlitzer electric piano?
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q1759986
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { ?d rdf:type ontology:Q34379 . resource:Q1759986 property:P1303 ?d } } . FILTER ( ?t = ?o ) . { SELECT DISTINCT ?z ( COUNT ( ?g ) AS ?t ) WHERE { ?g property:P1303 ?z . ?z rdf:type ontology:Q34379 . ?g rdf:type ontology:Q502895 } GROUP BY ?z } }
Wurlitzer electric piano
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Wurlitzer electric piano
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { ?d rdf:type ontology:musical_instrument . resource:Wurlitzer_electric_piano property:instrument ?d } } . FILTER ( ?t = ?o ) . { SELECT DISTINCT ?z ( COUNT ( ?g ) AS ?t ) WHERE { ?g property:instrument ?z . ?z rdf:type ontology:musical_instrument . ?g rdf:type ontology:common_name } GROUP BY ?z } }
[]
musical instrument common name
SYSTEM
60
Q80284 Q201129 Q424017 Q890073 Q80019 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q120585 Q713298 Q8371 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q1759986
relation P1303
type Q34379
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { ?d rdf:type ontology:Q34379 . resource:Q1759986 property:P1303 ?d } } . FILTER ( ?t = ?o ) . { SELECT DISTINCT ?z ( COUNT ( ?g ) AS ?t ) WHERE { ?g property:P1303 ?z . ?z rdf:type ontology:Q34379 . ?g rdf:type ontology:Q502895 } GROUP BY ?z } }
viola lyre acoustic bass guitar Body percussion double bass davul steel-string acoustic guitar Temple block Irish bouzouki maraca tonbak Twelve-string guitar harpsichord Nyckelharpa Ondioline Jinghu player piano electronic musical instrument vibraphone spoon timpani Wurlitzer electric piano string instrument clavinet Tsuzumi geomungo cello cabasa harmonium upright piano Bendir ondes Martenot tabla bodhrán Djembe glockenspiel Daxophone viola d'amore celesta toy piano cajón gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn morin khuur Timbales erhu wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar electronic keyboard drum Kayamb Paraguayan harp
60
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Wurlitzer electric piano
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { ?d rdf:type ontology:musical_instrument . resource:Wurlitzer_electric_piano property:instrument ?d } } . FILTER ( ?t = ?o ) . { SELECT DISTINCT ?z ( COUNT ( ?g ) AS ?t ) WHERE { ?g property:instrument ?z . ?z rdf:type ontology:musical_instrument . ?g rdf:type ontology:common_name } GROUP BY ?z } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P725
Q502895 Q11424
USER
Which films did max number of people dub for ?
(c(Q11424),P725,c(Q502895))
action argmax
action find_tuple_counts
relation P725
type Q11424
type Q502895
[{'concept': 'Q11424'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?s ) { SELECT DISTINCT ?g ( COUNT ( ?j ) AS ?x ) WHERE { ?g property:P725 ?j . ?g rdf:type ontology:Q11424 . ?j rdf:type ontology:Q502895 } GROUP BY ?g } } . FILTER ( ?a = ?s ) . { SELECT DISTINCT ?p ( COUNT ( ?e ) AS ?a ) WHERE { ?p property:P725 ?e . ?p rdf:type ontology:Q11424 . ?e rdf:type ontology:Q502895 } GROUP BY ?p } }
action argmax
action find_tuple_counts
relation voice actor
type film
type common name
[{'concept': 'film'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?s ) { SELECT DISTINCT ?g ( COUNT ( ?j ) AS ?x ) WHERE { ?g property:voice_actor ?j . ?g rdf:type ontology:film . ?j rdf:type ontology:common_name } GROUP BY ?g } } . FILTER ( ?a = ?s ) . { SELECT DISTINCT ?p ( COUNT ( ?e ) AS ?a ) WHERE { ?p property:voice_actor ?e . ?p rdf:type ontology:film . ?e rdf:type ontology:common_name } GROUP BY ?p } }
[]
common name film
Q271189
SYSTEM
Hercules
Q271189
(c(Q11424),P725,c(Q502895))
action argmax
action find_tuple_counts
relation P725
type Q11424
type Q502895
Max number of people dubbed as [ANSWER]
[{'concept': 'Q11424'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?s ) { SELECT DISTINCT ?g ( COUNT ( ?j ) AS ?x ) WHERE { ?g property:P725 ?j . ?g rdf:type ontology:Q11424 . ?j rdf:type ontology:Q502895 } GROUP BY ?g } } . FILTER ( ?a = ?s ) . { SELECT DISTINCT ?p ( COUNT ( ?e ) AS ?a ) WHERE { ?p property:P725 ?e . ?p rdf:type ontology:Q11424 . ?e rdf:type ontology:Q502895 } GROUP BY ?p } }
Hercules
Max number of people dubbed as Hercules
Hercules
action argmax
action find_tuple_counts
relation voice actor
type film
type common name
[{'concept': 'film'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?s ) { SELECT DISTINCT ?g ( COUNT ( ?j ) AS ?x ) WHERE { ?g property:voice_actor ?j . ?g rdf:type ontology:film . ?j rdf:type ontology:common_name } GROUP BY ?g } } . FILTER ( ?a = ?s ) . { SELECT DISTINCT ?p ( COUNT ( ?e ) AS ?a ) WHERE { ?p property:voice_actor ?e . ?p rdf:type ontology:film . ?e rdf:type ontology:common_name } GROUP BY ?p } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q271189
P1441
Q15619164
USER
Which abstract beings are present in that film ?
(c(Q15619164),P1441,Q271189)
action filter_type
action find_reverse
entity Q271189
relation P1441
type Q15619164
[{'concept': 'Q15619164'}, 'P1441', 'Q271189']
SELECT DISTINCT ?r WHERE { ?r property:P1441 resource:Q271189 . ?r rdf:type ontology:Q15619164 }
Hercules
action filter_type
action find_reverse
entity Hercules
relation present in work
type abstract being
[{'concept': 'abstract being'}, 'present in work', 'Hercules']
SELECT DISTINCT ?r WHERE { ?r property:present_in_work resource:Hercules . ?r rdf:type ontology:abstract_being }
[]
abstract being
Q18214896 Q3575323 Q2328889
SYSTEM
Hercules, Zeus, Hades
Q27856752 Q27856740 Q27857572 Q26299681 Q2328889 Q18214896 Q27857527 Q26390497 Q3575323 Q26987246 Q27858286 Q26272761 Q26273475 Q26273544
(c(Q15619164),P1441,Q271189)
action filter_type
action find_reverse
entity Q271189
relation P1441
type Q15619164
[ANSWERS] are present in that film
[{'concept': 'Q15619164'}, 'P1441', 'Q271189']
SELECT DISTINCT ?r WHERE { ?r property:P1441 resource:Q271189 . ?r rdf:type ontology:Q15619164 }
Atropos Lachesis Melpomene Charon Hades Hercules Clio Hera Zeus Clotho Apollo Hermes Terpsichore Thalia
Hercules, Zeus and Hades are present in that film
Hercules Zeus Hades
action filter_type
action find_reverse
entity Hercules
relation present in work
type abstract being
[{'concept': 'abstract being'}, 'present in work', 'Hercules']
SELECT DISTINCT ?r WHERE { ?r property:present_in_work resource:Hercules . ?r rdf:type ontology:abstract_being }
[]