Simple Question (Direct)
Simple Question
Q3230333
P495
Q1048835
USER
What is the origin of Les 3 p'tits cochons ?
(Q3230333,P495,c(Q1048835))
action filter_type
action find
entity Q3230333
relation P495
type Q1048835
['Q3230333', 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ?h WHERE { resource:Q3230333 property:P495 ?h . ?h rdf:type ontology:Q1048835 }
Les 3 p'tits cochons
action filter_type
action find
entity Les 3 p'tits cochons
relation country of origin
type political territorial entity
["Les 3 p'tits cochons", 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Les_3_p'tits_cochons property:country_of_origin ?h . ?h rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16
SYSTEM
Canada
Q16
(Q3230333,P495,c(Q1048835))
action filter_type
action find
entity Q3230333
relation P495
type Q1048835
[ANSWER]
['Q3230333', 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ?h WHERE { resource:Q3230333 property:P495 ?h . ?h rdf:type ontology:Q1048835 }
Canada
Canada
action filter_type
action find
entity Les 3 p'tits cochons
relation country of origin
type political territorial entity
["Les 3 p'tits cochons", 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Les_3_p'tits_cochons property:country_of_origin ?h . ?h rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16
P85
Q484692
USER
What is the national anthem of that political territory ?
(Q16,P85,c(Q484692))
action filter_type
action find
entity Q16
relation P85
type Q484692
['Q16', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?q WHERE { resource:Q16 property:P85 ?q . ?q rdf:type ontology:Q484692 }
Canada
action filter_type
action find
entity Canada
relation anthem
type hymn
['Canada', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?q WHERE { resource:Canada property:anthem ?q . ?q rdf:type ontology:hymn }
[]
hymn
Q93359
SYSTEM
O Canada
Q93359
(Q16,P85,c(Q484692))
action filter_type
action find
entity Q16
relation P85
type Q484692
[ANSWER]
['Q16', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?q WHERE { resource:Q16 property:P85 ?q . ?q rdf:type ontology:Q484692 }
O Canada
O Canada
action filter_type
action find
entity Canada
relation anthem
type hymn
['Canada', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?q WHERE { resource:Canada property:anthem ?q . ?q rdf:type ontology:hymn }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q917
Q484692
USER
And also tell me about Bhutan?
(Q917,P85,c(Q484692))
action filter_type
action find
entity Q917
relation P85
type Q484692
['Q917', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?k WHERE { resource:Q917 property:P85 ?k . ?k rdf:type ontology:Q484692 }
Bhutan
action filter_type
action find
entity Bhutan
relation anthem
type hymn
['Bhutan', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?k WHERE { resource:Bhutan property:anthem ?k . ?k rdf:type ontology:hymn }
[]
hymn
Q235441
SYSTEM
Druk tsendhen
Q235441
(Q917,P85,c(Q484692))
action filter_type
action find
entity Q917
relation P85
type Q484692
[ANSWER]
['Q917', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?k WHERE { resource:Q917 property:P85 ?k . ?k rdf:type ontology:Q484692 }
Druk tsendhen
Druk tsendhen
action filter_type
action find
entity Bhutan
relation anthem
type hymn
['Bhutan', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?k WHERE { resource:Bhutan property:anthem ?k . ?k rdf:type ontology:hymn }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q18155444 Q3230333
P161
Q502895
USER
Which people were casted in Les 3 p'tits cochons or The Night Before ?
OR((Q3230333,P161,c(Q502895)), (Q18155444,P161,c(Q502895)))
action filter_type
action union
action find
entity Q3230333
relation P161
action find
entity Q18155444
relation P161
type Q502895
{'OR': [['Q3230333', 'P161', {'concept': 'Q502895'}], ['Q18155444', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q3230333 property:P161 ?h } UNION { resource:Q18155444 property:P161 ?h } } . ?h rdf:type ontology:Q502895 }
The Night Before Les 3 p'tits cochons
action filter_type
action union
action find
entity Les 3 p'tits cochons
relation cast member
action find
entity The Night Before
relation cast member
type common name
{'OR': [["Les 3 p'tits cochons", 'cast member', {'concept': 'common name'}], ['The Night Before', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Les_3_p'tits_cochons property:cast_member ?h } UNION { resource:The_Night_Before property:cast_member ?h } } . ?h rdf:type ontology:common_name }
[]
common name
Q3120048 Q4235 Q16730037 Q220308 Q1255263 Q16207915 Q3080685 Q3277916 Q16198576 Q2977696
SYSTEM
Some of them are Guillaume Lemay-Thivierge, Miley Cyrus, Ilana Glazer, Seth Rogen, Jason Jones, Nathan Fielder, France Castel, Mahée Paiement, Jillian Bell, Claude Legault
Q2977696 Q3189253 Q539917 Q306403 Q236578 Q14542 Q667979 Q177311 Q511554 Q3120048 Q313486 Q16207915 Q2387320 Q1255263 Q3277916 Q220308 Q41449 Q460786 Q3367359 Q3154825 Q21511825 Q4235 Q16198576 Q3080685 Q16730037 Q7291588 Q6163031
OR((Q3230333,P161,c(Q502895)), (Q18155444,P161,c(Q502895)))
action filter_type
action union
action find
entity Q3230333
relation P161
action find
entity Q18155444
relation P161
type Q502895
[ANSWERS]
{'OR': [['Q3230333', 'P161', {'concept': 'Q502895'}], ['Q18155444', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q3230333 property:P161 ?h } UNION { resource:Q18155444 property:P161 ?h } } . ?h rdf:type ontology:Q502895 }
Claude Legault Julie Perreault Mindy Kaling James Franco Lizzy Caplan Tracy Morgan Aaron Hill Joseph Gordon-Levitt Anthony Mackie Guillaume Lemay-Thivierge Baron Davis Nathan Fielder Paul Doucet Jason Jones Mahée Paiement Seth Rogen Michael Shannon Lorraine Toussaint Pascal Darilus Isabel Richer Natalie Knepp Miley Cyrus Jillian Bell France Castel Ilana Glazer Randall Park Jason Mantzoukas
Guillaume Lemay-Thivierge Miley Cyrus Ilana Glazer Seth Rogen Jason Jones Nathan Fielder France Castel Mahée Paiement Jillian Bell Claude Legault
action filter_type
action union
action find
entity Les 3 p'tits cochons
relation cast member
action find
entity The Night Before
relation cast member
type common name
{'OR': [["Les 3 p'tits cochons", 'cast member', {'concept': 'common name'}], ['The Night Before', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Les_3_p'tits_cochons property:cast_member ?h } UNION { resource:The_Night_Before property:cast_member ?h } } . ?h rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments are played by atmost 2354 people ?
(c(Q502895),P1303,c(Q34379))
action count
action atmost
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2354
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?r ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?v ) AS ?w ) WHERE { ?v property:P1303 ?t . ?t rdf:type ontology:Q34379 . ?v rdf:type ontology:Q502895 } GROUP BY ?t } . FILTER ( ?w <= 2354 ) }
action count
action atmost
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2354
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?r ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?v ) AS ?w ) WHERE { ?v property:instrument ?t . ?t rdf:type ontology:musical_instrument . ?v rdf:type ontology:common_name } GROUP BY ?t } . FILTER ( ?w <= 2354 ) }
[]
musical instrument common name
SYSTEM
63
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 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 count
action atmost
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2354
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?r ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?v ) AS ?w ) WHERE { ?v property:P1303 ?t . ?t rdf:type ontology:Q34379 . ?v rdf:type ontology:Q502895 } GROUP BY ?t } . FILTER ( ?w <= 2354 ) }
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 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
63
action count
action atmost
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2354
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?r ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?v ) AS ?w ) WHERE { ?v property:instrument ?t . ?t rdf:type ontology:musical_instrument . ?v rdf:type ontology:common_name } GROUP BY ?t } . FILTER ( ?w <= 2354 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q39324
P47
Q13220204
USER
Which administrative country subdivisions are bordered by Lanzada ?
(Q39324,P47,c(Q13220204))
action filter_type
action find
entity Q39324
relation P47
type Q13220204
['Q39324', 'P47', {'concept': 'Q13220204'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q13220204 . resource:Q39324 property:P47 ?z }
Lanzada
action filter_type
action find
entity Lanzada
relation shares border with
type second-level administrative country subdivision
['Lanzada', 'shares border with', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:second-level_administrative_country_subdivision . resource:Lanzada property:shares_border_with ?z }
[]
second-level administrative country subdivision
Q69085 Q69259 Q69503
SYSTEM
Samedan, Pontresina, Poschiavo
Q69259 Q69085 Q69503 Q64200
(Q39324,P47,c(Q13220204))
action filter_type
action find
entity Q39324
relation P47
type Q13220204
[ANSWERS]
['Q39324', 'P47', {'concept': 'Q13220204'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q13220204 . resource:Q39324 property:P47 ?z }
Pontresina Samedan Poschiavo Sils im Engadin/Segl
Samedan Pontresina Poschiavo
action filter_type
action find
entity Lanzada
relation shares border with
type second-level administrative country subdivision
['Lanzada', 'shares border with', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:second-level_administrative_country_subdivision . resource:Lanzada property:shares_border_with ?z }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q750551
Q13220204
USER
And also tell me about Presidente Hayes?
(Q750551,P47,c(Q13220204))
action filter_type
action find
entity Q750551
relation P47
type Q13220204
['Q750551', 'P47', {'concept': 'Q13220204'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q13220204 . resource:Q750551 property:P47 ?p }
Presidente Hayes
action filter_type
action find
entity Presidente Hayes
relation shares border with
type second-level administrative country subdivision
['Presidente Hayes', 'shares border with', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:second-level_administrative_country_subdivision . resource:Presidente_Hayes property:shares_border_with ?p }
[]
second-level administrative country subdivision
Q2723419
SYSTEM
Asunción Capital District
Q2723419
(Q750551,P47,c(Q13220204))
action filter_type
action find
entity Q750551
relation P47
type Q13220204
[ANSWER]
['Q750551', 'P47', {'concept': 'Q13220204'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q13220204 . resource:Q750551 property:P47 ?p }
Asunción Capital District
Asunción Capital District
action filter_type
action find
entity Presidente Hayes
relation shares border with
type second-level administrative country subdivision
['Presidente Hayes', 'shares border with', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:second-level_administrative_country_subdivision . resource:Presidente_Hayes property:shares_border_with ?p }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q315079 Q18155444
P840 P19
Q56061
USER
Which administrative territories are The Night Before set in or were Ricardo Oliveira born ?
OR((Q18155444,P840,c(Q56061)), (Q315079,P19,c(Q56061)))
action filter_type
action union
action find
entity Q18155444
relation P840
action find
entity Q315079
relation P19
type Q56061
{'OR': [['Q18155444', 'P840', {'concept': 'Q56061'}], ['Q315079', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q18155444 property:P840 ?d } UNION { resource:Q315079 property:P19 ?d } } . ?d rdf:type ontology:Q56061 }
Ricardo Oliveira The Night Before
action filter_type
action union
action find
entity The Night Before
relation narrative location
action find
entity Ricardo Oliveira
relation place of birth
type administrative territorial entity
{'OR': [['The Night Before', 'narrative location', {'concept': 'administrative territorial entity'}], ['Ricardo Oliveira', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { { { resource:The_Night_Before property:narrative_location ?d } UNION { resource:Ricardo_Oliveira property:place_of_birth ?d } } . ?d rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q174 Q18419
SYSTEM
São Paulo, Brooklyn
Q174 Q18419
OR((Q18155444,P840,c(Q56061)), (Q315079,P19,c(Q56061)))
action filter_type
action union
action find
entity Q18155444
relation P840
action find
entity Q315079
relation P19
type Q56061
[ANSWERS]
{'OR': [['Q18155444', 'P840', {'concept': 'Q56061'}], ['Q315079', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q18155444 property:P840 ?d } UNION { resource:Q315079 property:P19 ?d } } . ?d rdf:type ontology:Q56061 }
São Paulo Brooklyn
São Paulo Brooklyn
action filter_type
action union
action find
entity The Night Before
relation narrative location
action find
entity Ricardo Oliveira
relation place of birth
type administrative territorial entity
{'OR': [['The Night Before', 'narrative location', {'concept': 'administrative territorial entity'}], ['Ricardo Oliveira', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { { { resource:The_Night_Before property:narrative_location ?d } UNION { resource:Ricardo_Oliveira property:place_of_birth ?d } } . ?d rdf:type ontology:administrative_territorial_entity }
[]