Simple Question (Direct)
Simple Question
Q441534
P108
Q3918
USER
Which university does Richard Peto work for ?
(Q441534,P108,c(Q3918))
action filter_type
action find
entity Q441534
relation P108
type Q3918
['Q441534', 'P108', {'concept': 'Q3918'}]
SELECT DISTINCT ?i WHERE { resource:Q441534 property:P108 ?i . ?i rdf:type ontology:Q3918 }
Richard Peto
action filter_type
action find
entity Richard Peto
relation employer
type university
['Richard Peto', 'employer', {'concept': 'university'}]
SELECT DISTINCT ?i WHERE { resource:Richard_Peto property:employer ?i . ?i rdf:type ontology:university }
[]
university
Q34433
SYSTEM
University of Oxford
Q34433
(Q441534,P108,c(Q3918))
action filter_type
action find
entity Q441534
relation P108
type Q3918
Richard Peto works on [ANSWER]
['Q441534', 'P108', {'concept': 'Q3918'}]
SELECT DISTINCT ?i WHERE { resource:Q441534 property:P108 ?i . ?i rdf:type ontology:Q3918 }
University of Oxford
Richard Peto works on University of Oxford
University of Oxford
action filter_type
action find
entity Richard Peto
relation employer
type university
['Richard Peto', 'employer', {'concept': 'university'}]
SELECT DISTINCT ?i WHERE { resource:Richard_Peto property:employer ?i . ?i rdf:type ontology:university }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q34433 Q7570061 Q145
P17
Q15617994
USER
Is that university located in Southern Kern Unified School District and United Kingdom ?
(Q34433,P17,Q7570061) (Q34433,P17,Q145)
action is_in
entity Q34433
action intersection
action find_reverse
entity Q7570061
relation P17
action find_reverse
entity Q145
relation P17
['Q34433', 'P17', 'Q7570061'] ['Q34433', 'P17', 'Q145']
ASK WHERE { resource:Q34433 property:P17 resource:Q7570061 . resource:Q34433 property:P17 resource:Q145 }
University of Oxford Southern Kern Unified School District United Kingdom
action is_in
entity University of Oxford
action intersection
action find_reverse
entity Southern Kern Unified School District
relation country
action find_reverse
entity United Kingdom
relation country
['University of Oxford', 'country', 'Southern Kern Unified School District'] ['University of Oxford', 'country', 'United Kingdom']
ASK WHERE { resource:University_of_Oxford property:country resource:Southern_Kern_Unified_School_District . resource:University_of_Oxford property:country resource:United_Kingdom }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q34433,P17,Q7570061) (Q34433,P17,Q145)
action is_in
entity Q34433
action intersection
action find_reverse
entity Q7570061
relation P17
action find_reverse
entity Q145
relation P17
[ANSWER]
['Q34433', 'P17', 'Q7570061'] ['Q34433', 'P17', 'Q145']
ASK WHERE { resource:Q34433 property:P17 resource:Q7570061 . resource:Q34433 property:P17 resource:Q145 }
NO and YES respectively
action is_in
entity University of Oxford
action intersection
action find_reverse
entity Southern Kern Unified School District
relation country
action find_reverse
entity United Kingdom
relation country
['University of Oxford', 'country', 'Southern Kern Unified School District'] ['University of Oxford', 'country', 'United Kingdom']
ASK WHERE { resource:University_of_Oxford property:country resource:Southern_Kern_Unified_School_District . resource:University_of_Oxford property:country resource:United_Kingdom }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q34433
P123
Q571
USER
What was released by that university ?
action filter_type
action find_reverse
entity Q34433
relation P123
type Q571
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q571 . ?e property:P123 resource:Q34433 }
University of Oxford
action filter_type
action find_reverse
entity University of Oxford
relation publisher
type book
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:book . ?e property:publisher resource:University_of_Oxford }
[]
book
Q15623602
SYSTEM
Kafka: A Very Short Introduction, 1st ed.
Q15623602
action filter_type
action find_reverse
entity Q34433
relation P123
type Q571
[ANSWER] was released by that university
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q571 . ?e property:P123 resource:Q34433 }
Kafka: A Very Short Introduction, 1st ed.
Kafka: A Very Short Introduction, 1st ed. was released by that university
Kafka: A Very Short Introduction, 1st ed.
action filter_type
action find_reverse
entity University of Oxford
relation publisher
type book
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:book . ?e property:publisher resource:University_of_Oxford }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P291
Q56061 Q571
USER
Which administrative territories were approximately 21 books published ?
(c(Q571),P291,c(Q56061))
action approx
action find_reverse_tuple_counts
relation P291
type Q56061
type Q571
value 21
[{'concept': 'Q571'}, 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?n ) AS ?y ) WHERE { ?n property:P291 ?z . ?z rdf:type ontology:Q56061 . ?n rdf:type ontology:Q571 } GROUP BY ?z } . FILTER ( ?y = 21 ) }
action approx
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type book
value 21
[{'concept': 'book'}, 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?n ) AS ?y ) WHERE { ?n property:place_of_publication ?z . ?z rdf:type ontology:administrative_territorial_entity . ?n rdf:type ontology:book } GROUP BY ?z } . FILTER ( ?y = 21 ) }
[]
administrative territorial entity book
Q2807 Q18125 Q1085
SYSTEM
Madrid, Manchester, Prague
Q2807 Q18125 Q1085
(c(Q571),P291,c(Q56061))
action approx
action find_reverse_tuple_counts
relation P291
type Q56061
type Q571
value 21
[ANSWERS] were approximately 21 books published
[{'concept': 'Q571'}, 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?n ) AS ?y ) WHERE { ?n property:P291 ?z . ?z rdf:type ontology:Q56061 . ?n rdf:type ontology:Q571 } GROUP BY ?z } . FILTER ( ?y = 21 ) }
Madrid Manchester Prague
Madrid, Manchester and Prague were approximately 21 books published
Madrid Manchester Prague
action approx
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type book
value 21
[{'concept': 'book'}, 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?n ) AS ?y ) WHERE { ?n property:place_of_publication ?z . ?z rdf:type ontology:administrative_territorial_entity . ?n rdf:type ontology:book } GROUP BY ?z } . FILTER ( ?y = 21 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1085
P1383
Q56061
USER
Which administrative territories belong to Prague ?
(Q1085,P1383,c(Q56061))
action filter_type
action find
entity Q1085
relation P1383
type Q56061
['Q1085', 'P1383', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q1085 property:P1383 ?v . ?v rdf:type ontology:Q56061 }
Prague
action filter_type
action find
entity Prague
relation contains settlement
type administrative territorial entity
['Prague', 'contains settlement', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Prague property:contains_settlement ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q973974 Q2071681 Q2157550
SYSTEM
Prague 1, Prague 8, Prague 14
Q2157550 Q2598899 Q2743565 Q3490834 Q2667290 Q3490843 Q577602 Q973974 Q2444636 Q2750534 Q2071681 Q3490864 Q3490557 Q2686587 Q2444921 Q1490045
(Q1085,P1383,c(Q56061))
action filter_type
action find
entity Q1085
relation P1383
type Q56061
[ANSWERS] belong to Prague
['Q1085', 'P1383', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q1085 property:P1383 ?v . ?v rdf:type ontology:Q56061 }
Prague 14 Prague 3 Prague 13 Prague 15 Prague 6 Prague 12 Prague 5 Prague 1 Prague 2 Prague 9 Prague 8 Prague 11 Prague 22 Prague 4 Prague 10 Prague 7
Prague 1, Prague 8 and Prague 14 belong to Prague
Prague 1 Prague 8 Prague 14
action filter_type
action find
entity Prague
relation contains settlement
type administrative territorial entity
['Prague', 'contains settlement', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Prague property:contains_settlement ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q2071681
P190
Q56061
USER
Which administrative territory is sister town of that one ?
(Q2071681,P190,c(Q56061))
action filter_type
action find
entity Q2071681
relation P190
type Q56061
['Q2071681', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q2071681 property:P190 ?j . ?j rdf:type ontology:Q56061 }
Prague 8
action filter_type
action find
entity Prague 8
relation sister city
type administrative territorial entity
['Prague 8', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Prague_8 property:sister_city ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Clarification for simple ques.
Q973974
SYSTEM
Did you mean Prague 1 ?
Q973974 Q2071681 Q2157550
(Q973974,P190,c(Q56061)) (Q2071681,P190,c(Q56061)) (Q2157550,P190,c(Q56061))
[ANSWER]
['Q973974', 'P190', {'concept': 'Q56061'}] ['Q2071681', 'P190', {'concept': 'Q56061'}] ['Q2157550', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q2071681 property:P190 ?j . ?j rdf:type ontology:Q56061 }
Prague 1 Prague 8 Prague 14
Did you mean Prague 1 ?
Prague 1
['Prague 1', 'sister city', {'concept': 'administrative territorial entity'}] ['Prague 8', 'sister city', {'concept': 'administrative territorial entity'}] ['Prague 14', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Prague_8 property:sister_city ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Prague 8. Could you tell me the answer for that?
(Q2071681,P190,c(Q56061))
Q2071681
['Q2071681', 'P190', {'concept': 'Q56061'}]
['Prague 8', 'sister city', {'concept': 'administrative territorial entity'}]
[]
Q8621
SYSTEM
Terni
Q8621
(Q2071681,P190,c(Q56061))
action filter_type
action find
entity Q2071681
relation P190
type Q56061
[ANSWER] is sister town of that one
['Q2071681', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q2071681 property:P190 ?j . ?j rdf:type ontology:Q56061 }
Terni
Terni is sister town of that one
Terni
action filter_type
action find
entity Prague 8
relation sister city
type administrative territorial entity
['Prague 8', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Prague_8 property:sister_city ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q8621
P47
Q56061
USER
Which administrative territories share border with that one ?
(Q8621,P47,c(Q56061))
action filter_type
action find
entity Q8621
relation P47
type Q56061
['Q8621', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q8621 property:P47 ?e . ?e rdf:type ontology:Q56061 }
Terni
action filter_type
action find
entity Terni
relation shares border with
type administrative territorial entity
['Terni', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Terni property:shares_border_with ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q10830 Q6029 Q10907
SYSTEM
Montecastrilli, Acquasparta, Stroncone
Q10830 Q10852 Q6029 Q10907 Q6248 Q10895 Q10866
(Q8621,P47,c(Q56061))
action filter_type
action find
entity Q8621
relation P47
type Q56061
[ANSWERS] share border with that one
['Q8621', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q8621 property:P47 ?e . ?e rdf:type ontology:Q56061 }
Montecastrilli Montefranco Acquasparta Stroncone Arrone San Gemini Narni
Montecastrilli, Acquasparta and Stroncone share border with that one
Montecastrilli Acquasparta Stroncone
action filter_type
action find
entity Terni
relation shares border with
type administrative territorial entity
['Terni', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Terni property:shares_border_with ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q16899090
P47
Q56061
USER
Does Rahmatabad, Eskelabad share border with those ones ?
(Q16899090,P47,Q10830) (Q16899090,P47,Q6029) (Q16899090,P47,Q10907)
action is_in
entity prev_answer
action find
entity Q16899090
relation P47
['Q16899090', 'P47', 'Q10830'] ['Q16899090', 'P47', 'Q6029'] ['Q16899090', 'P47', 'Q10907']
ASK WHERE { VALUES ( ?y ) { ( resource:Q10830 ) ( resource:Q10852 ) ( resource:Q6029 ) } . resource:Q16899090 property:P47 ?y }
Rahmatabad, Eskelabad
action is_in
entity prev_answer
action find
entity Rahmatabad, Eskelabad
relation shares border with
['Rahmatabad, Eskelabad', 'shares border with', 'Montecastrilli'] ['Rahmatabad, Eskelabad', 'shares border with', 'Acquasparta'] ['Rahmatabad, Eskelabad', 'shares border with', 'Stroncone']
ASK WHERE { VALUES ( ?y ) { ( resource:Montecastrilli ) ( resource:Montefranco ) ( resource:Acquasparta ) } . resource:Rahmatabad,_Eskelabad property:shares_border_with ?y }
[]
administrative territorial entity
SYSTEM
NO
(Q16899090,P47,Q10830) (Q16899090,P47,Q6029) (Q16899090,P47,Q10907)
action is_in
entity prev_answer
action find
entity Q16899090
relation P47
[ANSWER]
['Q16899090', 'P47', 'Q10830'] ['Q16899090', 'P47', 'Q6029'] ['Q16899090', 'P47', 'Q10907']
ASK WHERE { VALUES ( ?y ) { ( resource:Q10830 ) ( resource:Q10852 ) ( resource:Q6029 ) } . resource:Q16899090 property:P47 ?y }
No
action is_in
entity prev_answer
action find
entity Rahmatabad, Eskelabad
relation shares border with
['Rahmatabad, Eskelabad', 'shares border with', 'Montecastrilli'] ['Rahmatabad, Eskelabad', 'shares border with', 'Acquasparta'] ['Rahmatabad, Eskelabad', 'shares border with', 'Stroncone']
ASK WHERE { VALUES ( ?y ) { ( resource:Montecastrilli ) ( resource:Montefranco ) ( resource:Acquasparta ) } . resource:Rahmatabad,_Eskelabad property:shares_border_with ?y }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q10830 Q17422
P17
Q1048835
USER
How many political territories do Montecastrilli or same-sex marriage belong to ?
(Q10830,P17,c(Q1048835)) (Q17422,P17,c(Q1048835))
action count
action union
action filter_type
action find
entity Q10830
relation P17
type Q1048835
action filter_type
action find
entity Q17422
relation P17
type Q1048835
['Q10830', 'P17', {'concept': 'Q1048835'}] ['Q17422', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?k ) WHERE { { ?p rdf:type ontology:Q1048835 . resource:Q10830 property:P17 ?p } UNION { ?p rdf:type ontology:Q1048835 . resource:Q17422 property:P17 ?p } }
Montecastrilli same-sex marriage
action count
action union
action filter_type
action find
entity Montecastrilli
relation country
type political territorial entity
action filter_type
action find
entity same-sex marriage
relation country
type political territorial entity
['Montecastrilli', 'country', {'concept': 'political territorial entity'}] ['same-sex marriage', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?k ) WHERE { { ?p rdf:type ontology:political_territorial_entity . resource:Montecastrilli property:country ?p } UNION { ?p rdf:type ontology:political_territorial_entity . resource:same-sex_marriage property:country ?p } }
[]
political territorial entity
SYSTEM
3
Q16 Q664 Q35
(Q10830,P17,c(Q1048835)) (Q17422,P17,c(Q1048835))
action count
action union
action filter_type
action find
entity Q10830
relation P17
type Q1048835
action filter_type
action find
entity Q17422
relation P17
type Q1048835
[ANSWER]
['Q10830', 'P17', {'concept': 'Q1048835'}] ['Q17422', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?k ) WHERE { { ?p rdf:type ontology:Q1048835 . resource:Q10830 property:P17 ?p } UNION { ?p rdf:type ontology:Q1048835 . resource:Q17422 property:P17 ?p } }
Canada New Zealand Denmark
3
action count
action union
action filter_type
action find
entity Montecastrilli
relation country
type political territorial entity
action filter_type
action find
entity same-sex marriage
relation country
type political territorial entity
['Montecastrilli', 'country', {'concept': 'political territorial entity'}] ['same-sex marriage', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?k ) WHERE { { ?p rdf:type ontology:political_territorial_entity . resource:Montecastrilli property:country ?p } UNION { ?p rdf:type ontology:political_territorial_entity . resource:same-sex_marriage property:country ?p } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q10830
P190
Q56061
USER
Which administrative territory is the sister city of that one ?
action filter_type
action find
entity Q10830
relation P190
type Q56061
SELECT DISTINCT ?t WHERE { resource:Q10830 property:P190 ?t . ?t rdf:type ontology:Q56061 }
Montecastrilli
action filter_type
action find
entity Montecastrilli
relation sister city
type administrative territorial entity
SELECT DISTINCT ?t WHERE { resource:Montecastrilli property:sister_city ?t . ?t rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1930
SYSTEM
Ottawa
Q1930
action filter_type
action find
entity Q10830
relation P190
type Q56061
[ANSWER] is the sister city of that one
SELECT DISTINCT ?t WHERE { resource:Q10830 property:P190 ?t . ?t rdf:type ontology:Q56061 }
Ottawa
Ottawa is the sister city of that one
Ottawa
action filter_type
action find
entity Montecastrilli
relation sister city
type administrative territorial entity
SELECT DISTINCT ?t WHERE { resource:Montecastrilli property:sister_city ?t . ?t rdf:type ontology:administrative_territorial_entity }
[]