Simple Question (Direct)
Simple Question
Q7174917
P641
Q349
USER
Which sport was Peter Jackson a part of ?
(Q7174917,P641,c(Q349))
action filter_type
action find
entity Q7174917
relation P641
type Q349
['Q7174917', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?k WHERE { resource:Q7174917 property:P641 ?k . ?k rdf:type ontology:Q349 }
Peter Jackson
action filter_type
action find
entity Peter Jackson
relation sport
type sport
['Peter Jackson', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?k WHERE { resource:Peter_Jackson property:sport ?k . ?k rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q7174917,P641,c(Q349))
action filter_type
action find
entity Q7174917
relation P641
type Q349
Which sport was Peter Jackson a part of
['Q7174917', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?k WHERE { resource:Q7174917 property:P641 ?k . ?k rdf:type ontology:Q349 }
association football
Which sport was Peter Jackson a part of
association football
action filter_type
action find
entity Peter Jackson
relation sport
type sport
['Peter Jackson', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?k WHERE { resource:Peter_Jackson property:sport ?k . ?k rdf:type ontology:sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7174917
P19
Q56061
USER
Which administrative territory was Peter Jackson born at ?
(Q7174917,P19,c(Q56061))
action filter_type
action find
entity Q7174917
relation P19
type Q56061
['Q7174917', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q56061 . resource:Q7174917 property:P19 ?e }
Peter Jackson
action filter_type
action find
entity Peter Jackson
relation place of birth
type administrative territorial entity
['Peter Jackson', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:administrative_territorial_entity . resource:Peter_Jackson property:place_of_birth ?e }
[]
administrative territorial entity
Q134902
SYSTEM
Stoke-on-Trent
Q134902
(Q7174917,P19,c(Q56061))
action filter_type
action find
entity Q7174917
relation P19
type Q56061
Peter Jackson was born in [ANSWER]
['Q7174917', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q56061 . resource:Q7174917 property:P19 ?e }
Stoke-on-Trent
Peter Jackson was born in Stoke-on-Trent
Stoke-on-Trent
action filter_type
action find
entity Peter Jackson
relation place of birth
type administrative territorial entity
['Peter Jackson', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:administrative_territorial_entity . resource:Peter_Jackson property:place_of_birth ?e }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7174917
P106
Q12737077
USER
What is the job of Peter Jackson ?
(Q7174917,P106,c(Q12737077))
action filter_type
action find
entity Q7174917
relation P106
type Q12737077
['Q7174917', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q7174917 property:P106 ?z . ?z rdf:type ontology:Q12737077 }
Peter Jackson
action filter_type
action find
entity Peter Jackson
relation occupation
type occupation
['Peter Jackson', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:Peter_Jackson property:occupation ?z . ?z rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q7174917,P106,c(Q12737077))
action filter_type
action find
entity Q7174917
relation P106
type Q12737077
The job of Peter Jackson is an [ANSWER]
['Q7174917', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q7174917 property:P106 ?z . ?z rdf:type ontology:Q12737077 }
association football player
The job of Peter Jackson is an association football player
association football player
action filter_type
action find
entity Peter Jackson
relation occupation
type occupation
['Peter Jackson', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:Peter_Jackson property:occupation ?z . ?z rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q7146252
Q12737077
USER
And what about Patrick Collins?
(Q7146252,P106,c(Q12737077))
action filter_type
action find
entity Q7146252
relation P106
type Q12737077
['Q7146252', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q7146252 property:P106 ?i . ?i rdf:type ontology:Q12737077 }
Patrick Collins
action filter_type
action find
entity Patrick Collins
relation occupation
type occupation
['Patrick Collins', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Patrick_Collins property:occupation ?i . ?i rdf:type ontology:occupation }
[]
occupation
Q488111
SYSTEM
pornographic actor
Q488111
(Q7146252,P106,c(Q12737077))
action filter_type
action find
entity Q7146252
relation P106
type Q12737077
[ANSWER]
['Q7146252', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q7146252 property:P106 ?i . ?i rdf:type ontology:Q12737077 }
pornographic actor
pornographic actor
action filter_type
action find
entity Patrick Collins
relation occupation
type occupation
['Patrick Collins', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Patrick_Collins property:occupation ?i . ?i rdf:type ontology:occupation }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P417
Q502895 Q12737077
USER
Which people are the names of person who are the patron saints of exactly 2 occupations ?
(c(Q12737077),P417,c(Q502895))
action equal
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 2
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?q ) AS ?k ) WHERE { ?q property:P417 ?e . ?e rdf:type ontology:Q502895 . ?q rdf:type ontology:Q12737077 } GROUP BY ?e } . FILTER ( ?k = 2 ) }
action equal
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 2
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?q ) AS ?k ) WHERE { ?q property:patron_saint ?e . ?e rdf:type ontology:common_name . ?q rdf:type ontology:occupation } GROUP BY ?e } . FILTER ( ?k = 2 ) }
[]
common name occupation
Q166876 Q229190 Q44248
SYSTEM
Isidore of Seville, Catherine of Siena, Jerome
Q229190 Q328804 Q166876 Q170547 Q183240 Q196653 Q44265 Q744884 Q151967 Q44248
(c(Q12737077),P417,c(Q502895))
action equal
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
value 2
[ANSWERS] are the names of person who are the patron saints of exactly 2 occupations
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?q ) AS ?k ) WHERE { ?q property:P417 ?e . ?e rdf:type ontology:Q502895 . ?q rdf:type ontology:Q12737077 } GROUP BY ?e } . FILTER ( ?k = 2 ) }
Catherine of Siena John the Evangelist Isidore of Seville Anthony the Great Saint Lucy Saint Veronica Benedict of Nursia Zita Saint Blaise Jerome
Isidore of Seville, Catherine of Siena and Jerome are the names of person who are the patron saints of exactly 2 occupations
Isidore of Seville Catherine of Siena Jerome
action equal
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
value 2
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?q ) AS ?k ) WHERE { ?q property:patron_saint ?e . ?e rdf:type ontology:common_name . ?q rdf:type ontology:occupation } GROUP BY ?e } . FILTER ( ?k = 2 ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments are played by exactly 3 people ?
(c(Q502895),P1303,c(Q34379))
action equal
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?y ) AS ?z ) WHERE { ?y property:P1303 ?c . ?c rdf:type ontology:Q34379 . ?y rdf:type ontology:Q502895 } GROUP BY ?c } . FILTER ( ?z = 3 ) }
action equal
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?y ) AS ?z ) WHERE { ?y property:instrument ?c . ?c rdf:type ontology:musical_instrument . ?y rdf:type ontology:common_name } GROUP BY ?c } . FILTER ( ?z = 3 ) }
[]
musical instrument common name
Q626035 Q726306
SYSTEM
glockenspiel, erhu
Q626035 Q726306
(c(Q502895),P1303,c(Q34379))
action equal
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3
[ANSWERS] are played by exactly 3 people
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?y ) AS ?z ) WHERE { ?y property:P1303 ?c . ?c rdf:type ontology:Q34379 . ?y rdf:type ontology:Q502895 } GROUP BY ?c } . FILTER ( ?z = 3 ) }
glockenspiel erhu
Glockenspiel and erhu are played by exactly 3 people
glockenspiel erhu
action equal
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?y ) AS ?z ) WHERE { ?y property:instrument ?c . ?c rdf:type ontology:musical_instrument . ?y rdf:type ontology:common_name } GROUP BY ?c } . FILTER ( ?z = 3 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5609077 Q7174917
P27
Q15617994
USER
Which administrative territories do Peter Jackson or Grigoria Golia belong to ?
OR((Q7174917,P27,c(Q15617994)), (Q5609077,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q7174917
relation P27
action find
entity Q5609077
relation P27
type Q15617994
{'OR': [['Q7174917', 'P27', {'concept': 'Q15617994'}], ['Q5609077', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q7174917 property:P27 ?o } UNION { resource:Q5609077 property:P27 ?o } } . ?o rdf:type ontology:Q15617994 }
Grigoria Golia Peter Jackson
action filter_type
action union
action find
entity Peter Jackson
relation country of citizenship
action find
entity Grigoria Golia
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Peter Jackson', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Grigoria Golia', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Peter_Jackson property:country_of_citizenship ?o } UNION { resource:Grigoria_Golia property:country_of_citizenship ?o } } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145 Q41
SYSTEM
United Kingdom, Greece
Q145 Q41
OR((Q7174917,P27,c(Q15617994)), (Q5609077,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q7174917
relation P27
action find
entity Q5609077
relation P27
type Q15617994
Peter Jackson or Grigoria Golia belong to the [ANSWERS]
{'OR': [['Q7174917', 'P27', {'concept': 'Q15617994'}], ['Q5609077', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q7174917 property:P27 ?o } UNION { resource:Q5609077 property:P27 ?o } } . ?o rdf:type ontology:Q15617994 }
United Kingdom Greece
Peter Jackson or Grigoria Golia belong to the United Kingdom and Greece
United Kingdom Greece
action filter_type
action union
action find
entity Peter Jackson
relation country of citizenship
action find
entity Grigoria Golia
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Peter Jackson', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Grigoria Golia', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Peter_Jackson property:country_of_citizenship ?o } UNION { resource:Grigoria_Golia property:country_of_citizenship ?o } } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q142 Q41
P27
Q502895
USER
Which people are civilians of Greece and France ?
AND((c(Q502895),P27,Q41), (c(Q502895),P27,Q142))
action filter_type
action intersection
action find_reverse
entity Q41
relation P27
action find_reverse
entity Q142
relation P27
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q41'], [{'concept': 'Q502895'}, 'P27', 'Q142']]}
SELECT DISTINCT ?i WHERE { ?i property:P27 resource:Q41 . ?i property:P27 resource:Q142 . ?i rdf:type ontology:Q502895 }
France Greece
action filter_type
action intersection
action find_reverse
entity Greece
relation country of citizenship
action find_reverse
entity France
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Greece'], [{'concept': 'common name'}, 'country of citizenship', 'France']]}
SELECT DISTINCT ?i WHERE { ?i property:country_of_citizenship resource:Greece . ?i property:country_of_citizenship resource:France . ?i rdf:type ontology:common_name }
[]
common name
Q3571831 Q3296634 Q81500 Q3573990 Q3515982 Q3199100 Q19543099 Q821528 Q340238 Q296698
SYSTEM
Some of them are Yannis Youlountas, Nikos Papatakis, Helene Ahrweiler, Yves Triantafyllos, Tasso Janopoulo, Kostas Papaioannou, Ionna Stephanopoli, Constantine Andreou, Achilles Papapetrou, Costa-Gavras
Q154294 Q367584 Q534073 Q3296634 Q312817 Q1355279 Q455861 Q821528 Q1082430 Q330976 Q3515982 Q158030 Q283026 Q12881955 Q1132898 Q15143663 Q4452632 Q344179 Q1225978 Q983648 Q959087 Q2995035 Q3494322 Q1377712 Q16330094 Q2161706 Q81500 Q340238 Q735053 Q152880 Q2997349 Q353857 Q19543099 Q293985 Q2994965 Q1393865 Q3571831 Q3573990 Q3199100 Q1525590 Q296698 Q3103371 Q12881801
AND((c(Q502895),P27,Q41), (c(Q502895),P27,Q142))
action filter_type
action intersection
action find_reverse
entity Q41
relation P27
action find_reverse
entity Q142
relation P27
type Q502895
[ANSWERS] are civilians of Greece and France
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q41'], [{'concept': 'Q502895'}, 'P27', 'Q142']]}
SELECT DISTINCT ?i WHERE { ?i property:P27 resource:Q41 . ?i property:P27 resource:Q142 . ?i rdf:type ontology:Q502895 }
Athina Onassis Roussel Tériade Iris Clert Nikos Papatakis E. M. Antoniadi Georges Aperghis Alexandre Tuffère Constantine Andreou Christian Zervos Demetrios Galanis Tasso Janopoulo Cornelius Castoriadis locus Basil Zaharoff Dikos Vizantios Sokratis Lagoudakis John Carandino Jean Tatlian Panait Istrati Dimitrios Levidis Kostas Axelos Romain Gavras Constantin Xenakis Spyros Artavanis-Tsakonas Georges Candilis Níkos G. Svorṓnos Mayo Helene Ahrweiler Achilles Papapetrou Georgios Christakis-Zografos Iannis Xenakis Corinne Mentzelopoulos Jean Moréas Ionna Stephanopoli Georges Moustaki Constantin Denis Bourbaki Ioannis Psycharis Yannis Youlountas Yves Triantafyllos Kostas Papaioannou Giorgos Arvanitis Costa-Gavras Georges Prévélakis Nikolaos Episkopopulos
Yannis Youlountas, Nikos Papatakis, Helene Ahrweiler, Yves Triantafyllos, Tasso Janopoulo, Kostas Papaioannou, Ionna Stephanopoli, Constantine Andreou, Achilles Papapetrou and Costa-Gavras are civilians of Greece and France
Yannis Youlountas Nikos Papatakis Helene Ahrweiler Yves Triantafyllos Tasso Janopoulo Kostas Papaioannou Ionna Stephanopoli Constantine Andreou Achilles Papapetrou Costa-Gavras
action filter_type
action intersection
action find_reverse
entity Greece
relation country of citizenship
action find_reverse
entity France
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Greece'], [{'concept': 'common name'}, 'country of citizenship', 'France']]}
SELECT DISTINCT ?i WHERE { ?i property:country_of_citizenship resource:Greece . ?i property:country_of_citizenship resource:France . ?i rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments are played by approximately 1197 people ?
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1197
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?n ) AS ?z ) WHERE { ?n property:P1303 ?v . ?v rdf:type ontology:Q34379 . ?n rdf:type ontology:Q502895 } GROUP BY ?v } . FILTER ( ?z = 1197 ) }
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1197
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?n ) AS ?z ) WHERE { ?n property:instrument ?v . ?v rdf:type ontology:musical_instrument . ?n rdf:type ontology:common_name } GROUP BY ?v } . FILTER ( ?z = 1197 ) }
[]
musical instrument common name
Q1178361 Q81982 Q1759986
SYSTEM
davul, harpsichord, Wurlitzer electric piano
Q80284 Q46185 Q201129 Q424017 Q890073 Q80019 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q8338 Q120585 Q713298 Q8371 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q1444 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q128309 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1197
[ANSWERS] are played by approximately 1197 people
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?n ) AS ?z ) WHERE { ?n property:P1303 ?v . ?v rdf:type ontology:Q34379 . ?n rdf:type ontology:Q502895 } GROUP BY ?v } . FILTER ( ?z = 1197 ) }
viola bass guitar 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 trumpet Tsuzumi geomungo cello cabasa harmonium upright piano Bendir ondes Martenot tabla bodhrán Djembe glockenspiel Daxophone viola d'amore celesta toy piano organ cajón gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn drum kit morin khuur Timbales erhu wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar electronic keyboard drum Kayamb Paraguayan harp
Davul, harpsichord and Wurlitzer electric piano are played by approximately 1197 people
davul harpsichord Wurlitzer electric piano
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1197
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?n ) AS ?z ) WHERE { ?n property:instrument ?v . ?v rdf:type ontology:musical_instrument . ?n rdf:type ontology:common_name } GROUP BY ?v } . FILTER ( ?z = 1197 ) }
[]