Simple Question (Direct)
Simple Question
Q1077730
P27
Q1048835
USER
Which political territory is Chris Scott an inhabitant of ?
(Q1077730,P27,c(Q1048835))
action filter_type
action find
entity Q1077730
relation P27
type Q1048835
['Q1077730', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?p WHERE { resource:Q1077730 property:P27 ?p . ?p rdf:type ontology:Q1048835 }
Chris Scott
action filter_type
action find
entity Chris Scott
relation country of citizenship
type political territorial entity
['Chris Scott', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Chris_Scott property:country_of_citizenship ?p . ?p rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16
SYSTEM
Canada
Q16
(Q1077730,P27,c(Q1048835))
action filter_type
action find
entity Q1077730
relation P27
type Q1048835
The [ANSWER] is Chris Scott an inhabitant of
['Q1077730', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?p WHERE { resource:Q1077730 property:P27 ?p . ?p rdf:type ontology:Q1048835 }
Canada
The Canada is Chris Scott an inhabitant of
Canada
action filter_type
action find
entity Chris Scott
relation country of citizenship
type political territorial entity
['Chris Scott', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Chris_Scott property:country_of_citizenship ?p . ?p rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16
P840
Q201658
USER
Which film genre has a setting location of that political territory ?
(c(Q201658),P840,Q16)
action filter_type
action find_reverse
entity Q16
relation P840
type Q201658
[{'concept': 'Q201658'}, 'P840', 'Q16']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q201658 . ?t property:P840 resource:Q16 }
Canada
action filter_type
action find_reverse
entity Canada
relation narrative location
type film genre
[{'concept': 'film genre'}, 'narrative location', 'Canada']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:film_genre . ?t property:narrative_location resource:Canada }
[]
film genre
Q2413979
SYSTEM
The Romance of Transportation in Canada
Q2413979
(c(Q201658),P840,Q16)
action filter_type
action find_reverse
entity Q16
relation P840
type Q201658
[ANSWER] has a setting location of that political territory
[{'concept': 'Q201658'}, 'P840', 'Q16']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q201658 . ?t property:P840 resource:Q16 }
The Romance of Transportation in Canada
The Romance of Transportation in Canada has a setting location of that political territory
The Romance of Transportation in Canada
action filter_type
action find_reverse
entity Canada
relation narrative location
type film genre
[{'concept': 'film genre'}, 'narrative location', 'Canada']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:film_genre . ?t property:narrative_location resource:Canada }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2413979
P162
Q502895
USER
Who produced that film genre ?
(Q2413979,P162,c(Q502895))
action filter_type
action find
entity Q2413979
relation P162
type Q502895
['Q2413979', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q2413979 property:P162 ?e . ?e rdf:type ontology:Q502895 }
The Romance of Transportation in Canada
action filter_type
action find
entity The Romance of Transportation in Canada
relation producer
type common name
['The Romance of Transportation in Canada', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:The_Romance_of_Transportation_in_Canada property:producer ?e . ?e rdf:type ontology:common_name }
[]
common name
Q1291254
SYSTEM
Tom Daly
Q1291254
(Q2413979,P162,c(Q502895))
action filter_type
action find
entity Q2413979
relation P162
type Q502895
[ANSWER] produced that film genre
['Q2413979', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q2413979 property:P162 ?e . ?e rdf:type ontology:Q502895 }
Tom Daly
Tom Daly produced that film genre
Tom Daly
action filter_type
action find
entity The Romance of Transportation in Canada
relation producer
type common name
['The Romance of Transportation in Canada', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:The_Romance_of_Transportation_in_Canada property:producer ?e . ?e rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q1291254
P27
Q1048835
USER
How many political territories are Tom Daly a civilian of ?
(Q1291254,P27,c(Q1048835))
action count
action filter_type
action find
entity Q1291254
relation P27
type Q1048835
['Q1291254', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?s ) WHERE { ?p rdf:type ontology:Q1048835 . resource:Q1291254 property:P27 ?p }
Tom Daly
action count
action filter_type
action find
entity Tom Daly
relation country of citizenship
type political territorial entity
['Tom Daly', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?s ) WHERE { ?p rdf:type ontology:political_territorial_entity . resource:Tom_Daly property:country_of_citizenship ?p }
[]
political territorial entity
SYSTEM
1
Q16
(Q1291254,P27,c(Q1048835))
action count
action filter_type
action find
entity Q1291254
relation P27
type Q1048835
[ANSWER]
['Q1291254', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?s ) WHERE { ?p rdf:type ontology:Q1048835 . resource:Q1291254 property:P27 ?p }
Canada
1
action count
action filter_type
action find
entity Tom Daly
relation country of citizenship
type political territorial entity
['Tom Daly', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?s ) WHERE { ?p rdf:type ontology:political_territorial_entity . resource:Tom_Daly property:country_of_citizenship ?p }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q2792938
Q1048835
USER
And also tell me about Paul Horst-Schulze?
(Q2792938,P27,c(Q1048835))
action count
action filter_type
action find
entity Q2792938
relation P27
type Q1048835
['Q2792938', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?d ) WHERE { resource:Q2792938 property:P27 ?a . ?a rdf:type ontology:Q1048835 }
Paul Horst-Schulze
action count
action filter_type
action find
entity Paul Horst-Schulze
relation country of citizenship
type political territorial entity
['Paul Horst-Schulze', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?d ) WHERE { resource:Paul_Horst-Schulze property:country_of_citizenship ?a . ?a rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
1
(Q2792938,P27,c(Q1048835))
action count
action filter_type
action find
entity Q2792938
relation P27
type Q1048835
[ANSWER]
['Q2792938', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?d ) WHERE { resource:Q2792938 property:P27 ?a . ?a rdf:type ontology:Q1048835 }
1
action count
action filter_type
action find
entity Paul Horst-Schulze
relation country of citizenship
type political territorial entity
['Paul Horst-Schulze', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?d ) WHERE { resource:Paul_Horst-Schulze property:country_of_citizenship ?a . ?a rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P725
Q502895 Q15619164
USER
Which abstract beings did exactly 5 people do the dubbing for ?
(c(Q15619164),P725,c(Q502895))
action equal
action find_tuple_counts
relation P725
type Q15619164
type Q502895
value 5
[{'concept': 'Q15619164'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?b ) AS ?t ) WHERE { ?s property:P725 ?b . ?b rdf:type ontology:Q502895 . ?s rdf:type ontology:Q15619164 } GROUP BY ?s } . FILTER ( ?t = 5 ) }
action equal
action find_tuple_counts
relation voice actor
type abstract being
type common name
value 5
[{'concept': 'abstract being'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?b ) AS ?t ) WHERE { ?s property:voice_actor ?b . ?b rdf:type ontology:common_name . ?s rdf:type ontology:abstract_being } GROUP BY ?s } . FILTER ( ?t = 5 ) }
[]
common name abstract being
Q3565718 Q14432243 Q15141427
SYSTEM
Walter C. Dornez, Bill Grey, Pinkie Pie
Q14432243 Q15141427 Q3565718 Q14432283 Q15710460
(c(Q15619164),P725,c(Q502895))
action equal
action find_tuple_counts
relation P725
type Q15619164
type Q502895
value 5
Exactly 5 people did the dubbing for [ANSWERS]
[{'concept': 'Q15619164'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?b ) AS ?t ) WHERE { ?s property:P725 ?b . ?b rdf:type ontology:Q502895 . ?s rdf:type ontology:Q15619164 } GROUP BY ?s } . FILTER ( ?t = 5 ) }
Bill Grey Pinkie Pie Walter C. Dornez Katt Monroe Gilda, the Griffin
Exactly 5 people did the dubbing for Walter C. Dornez, Bill Grey and Pinkie Pie
Walter C. Dornez Bill Grey Pinkie Pie
action equal
action find_tuple_counts
relation voice actor
type abstract being
type common name
value 5
[{'concept': 'abstract being'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?b ) AS ?t ) WHERE { ?s property:voice_actor ?b . ?b rdf:type ontology:common_name . ?s rdf:type ontology:abstract_being } GROUP BY ?s } . FILTER ( ?t = 5 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q6225989 Q1291254
P162
Q838948
USER
Which works of art have been produced by Tom Daly or John Chong ?
OR((c(Q838948),P162,Q1291254), (c(Q838948),P162,Q6225989))
action filter_type
action union
action find_reverse
entity Q1291254
relation P162
action find_reverse
entity Q6225989
relation P162
type Q838948
{'OR': [[{'concept': 'Q838948'}, 'P162', 'Q1291254'], [{'concept': 'Q838948'}, 'P162', 'Q6225989']]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q838948 . { { ?p property:P162 resource:Q1291254 } UNION { ?p property:P162 resource:Q6225989 } } }
John Chong Tom Daly
action filter_type
action union
action find_reverse
entity Tom Daly
relation producer
action find_reverse
entity John Chong
relation producer
type work of art
{'OR': [[{'concept': 'work of art'}, 'producer', 'Tom Daly'], [{'concept': 'work of art'}, 'producer', 'John Chong']]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:work_of_art . { { ?p property:producer resource:Tom_Daly } UNION { ?p property:producer resource:John_Chong } } }
[]
work of art
Q2652985 Q7894196 Q7099007 Q5705165 Q5172711 Q5121494 Q2975195 Q8022432 Q4630844 Q7923069
SYSTEM
Some of them are Assembly, Universe, Option Zero, Helicopter Canada, Corral, Circle of the Sun, Naked Weapon, First Option, 21-87, Very Nice, Very Nice
Q3015473 Q11088774 Q3942068 Q645387 Q4184013 Q7923069 Q8022432 Q4630844 Q5172711 Q2652985 Q5121494 Q51757 Q2975195 Q4877932 Q7099007 Q1085332 Q7960559 Q3478838 Q5123702 Q7894196 Q5705165 Q1451982 Q3410981
OR((c(Q838948),P162,Q1291254), (c(Q838948),P162,Q6225989))
action filter_type
action union
action find_reverse
entity Q1291254
relation P162
action find_reverse
entity Q6225989
relation P162
type Q838948
[ANSWERS]
{'OR': [[{'concept': 'Q838948'}, 'P162', 'Q1291254'], [{'concept': 'Q838948'}, 'P162', 'Q6225989']]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q838948 . { { ?p property:P162 resource:Q1291254 } UNION { ?p property:P162 resource:Q6225989 } } }
In the Labyrinth Love in the Buff Royal Journey Gen-X Cops Lady Cop & Papa Crook Very Nice, Very Nice First Option 21-87 Corral Assembly Circle of the Sun The Banquet Naked Weapon Beauty and the Breast Option Zero Magic Kitchen Waiting for Fidel Seoul Raiders City of Gold Universe Helicopter Canada Vengeance Purple Storm
Assembly, Universe, Option Zero, Helicopter Canada, Corral, Circle of the Sun, Naked Weapon, First Option, 21-87 and Very Nice, Very Nice have been produced by Tom Daly or John Chong
Assembly Universe Option Zero Helicopter Canada Corral Circle of the Sun Naked Weapon First Option 21-87 Very Nice, Very Nice
action filter_type
action union
action find_reverse
entity Tom Daly
relation producer
action find_reverse
entity John Chong
relation producer
type work of art
{'OR': [[{'concept': 'work of art'}, 'producer', 'Tom Daly'], [{'concept': 'work of art'}, 'producer', 'John Chong']]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:work_of_art . { { ?p property:producer resource:Tom_Daly } UNION { ?p property:producer resource:John_Chong } } }
[]