Simple Question (Direct)
Simple Question
Q5301033
P20
Q56061
USER
Where did the expiration of Doug Wright occur ?
(Q5301033,P20,c(Q56061))
action filter_type
action find
entity Q5301033
relation P20
type Q56061
['Q5301033', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q5301033 property:P20 ?a . ?a rdf:type ontology:Q56061 }
Doug Wright
action filter_type
action find
entity Doug Wright
relation place of death
type administrative territorial entity
['Doug Wright', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Doug_Wright property:place_of_death ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2249694
SYSTEM
Bedlington
Q2249694
(Q5301033,P20,c(Q56061))
action filter_type
action find
entity Q5301033
relation P20
type Q56061
The expiration of Doug Wright occurred in [ANSWER]
['Q5301033', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q5301033 property:P20 ?a . ?a rdf:type ontology:Q56061 }
Bedlington
The expiration of Doug Wright occurred in Bedlington
Bedlington
action filter_type
action find
entity Doug Wright
relation place of death
type administrative territorial entity
['Doug Wright', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Doug_Wright property:place_of_death ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2249694
P159
Q43229
USER
Which organization has HQ at that administrative territory ?
(c(Q43229),P159,Q2249694)
action filter_type
action find_reverse
entity Q2249694
relation P159
type Q43229
[{'concept': 'Q43229'}, 'P159', 'Q2249694']
SELECT DISTINCT ?h WHERE { ?h property:P159 resource:Q2249694 . ?h rdf:type ontology:Q43229 }
Bedlington
action filter_type
action find_reverse
entity Bedlington
relation headquarters location
type organization
[{'concept': 'organization'}, 'headquarters location', 'Bedlington']
SELECT DISTINCT ?h WHERE { ?h property:headquarters_location resource:Bedlington . ?h rdf:type ontology:organization }
[]
organization
Q7059792
SYSTEM
Northumberland Brewery
Q7059792
(c(Q43229),P159,Q2249694)
action filter_type
action find_reverse
entity Q2249694
relation P159
type Q43229
[ANSWER] has HQ at that administrative territory
[{'concept': 'Q43229'}, 'P159', 'Q2249694']
SELECT DISTINCT ?h WHERE { ?h property:P159 resource:Q2249694 . ?h rdf:type ontology:Q43229 }
Northumberland Brewery
Northumberland Brewery has HQ at that administrative territory
Northumberland Brewery
action filter_type
action find_reverse
entity Bedlington
relation headquarters location
type organization
[{'concept': 'organization'}, 'headquarters location', 'Bedlington']
SELECT DISTINCT ?h WHERE { ?h property:headquarters_location resource:Bedlington . ?h rdf:type ontology:organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2249694
P19
Q502895
USER
Who have location of birth at Bedlington ?
(c(Q502895),P19,Q2249694)
action filter_type
action find_reverse
entity Q2249694
relation P19
type Q502895
[{'concept': 'Q502895'}, 'P19', 'Q2249694']
SELECT DISTINCT ?t WHERE { ?t property:P19 resource:Q2249694 . ?t rdf:type ontology:Q502895 }
Bedlington
action filter_type
action find_reverse
entity Bedlington
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Bedlington']
SELECT DISTINCT ?t WHERE { ?t property:place_of_birth resource:Bedlington . ?t rdf:type ontology:common_name }
[]
common name
Q6261255 Q22004355 Q333815
SYSTEM
John Trewick, Trevor Finnigan, Daniel Gooch
Q22004355 Q333815 Q4717869 Q18737044 Q16744920 Q6167905 Q7819807 Q5230060 Q19578072 Q6261255 Q18822339 Q4964917 Q23682881 Q7820014 Q8001658
(c(Q502895),P19,Q2249694)
action filter_type
action find_reverse
entity Q2249694
relation P19
type Q502895
[ANSWERS] have location of birth at Bedlington
[{'concept': 'Q502895'}, 'P19', 'Q2249694']
SELECT DISTINCT ?t WHERE { ?t property:P19 resource:Q2249694 . ?t rdf:type ontology:Q502895 }
Trevor Finnigan Daniel Gooch Alex Tait Bill Richardson Eric Bell Jayne Middlemiss Tommy Rigg Dave Walton Bill Thompson John Trewick Bill Dodd Brian O'Neil George Sharp Tommy Wilson Wilf Grant
John Trewick, Trevor Finnigan and Daniel Gooch have location of birth at Bedlington
John Trewick Trevor Finnigan Daniel Gooch
action filter_type
action find_reverse
entity Bedlington
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Bedlington']
SELECT DISTINCT ?t WHERE { ?t property:place_of_birth resource:Bedlington . ?t rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q22004355
P641
Q349
USER
Which sport was that person a part of ?
(Q22004355,P641,c(Q349))
action filter_type
action find
entity Q22004355
relation P641
type Q349
['Q22004355', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?r WHERE { resource:Q22004355 property:P641 ?r . ?r rdf:type ontology:Q349 }
Trevor Finnigan
action filter_type
action find
entity Trevor Finnigan
relation sport
type sport
['Trevor Finnigan', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?r WHERE { resource:Trevor_Finnigan property:sport ?r . ?r rdf:type ontology:sport }
[]
sport
Clarification for simple ques.
Q22004355
SYSTEM
Did you mean Trevor Finnigan ?
Q6261255 Q22004355 Q333815
(Q6261255,P641,c(Q349)) (Q22004355,P641,c(Q349)) (Q333815,P641,c(Q349))
[ANSWER]
['Q6261255', 'P641', {'concept': 'Q349'}] ['Q22004355', 'P641', {'concept': 'Q349'}] ['Q333815', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?r WHERE { resource:Q22004355 property:P641 ?r . ?r rdf:type ontology:Q349 }
John Trewick Trevor Finnigan Daniel Gooch
Did you mean Trevor Finnigan ?
Trevor Finnigan
['John Trewick', 'sport', {'concept': 'sport'}] ['Trevor Finnigan', 'sport', {'concept': 'sport'}] ['Daniel Gooch', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?r WHERE { resource:Trevor_Finnigan property:sport ?r . ?r rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
USER
Yes
(Q22004355,P641,c(Q349))
['Q22004355', 'P641', {'concept': 'Q349'}]
['Trevor Finnigan', 'sport', {'concept': 'sport'}]
[]
Q2736
SYSTEM
association football
Q2736
(Q22004355,P641,c(Q349))
action filter_type
action find
entity Q22004355
relation P641
type Q349
Football [ANSWER] was that person a part of
['Q22004355', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?r WHERE { resource:Q22004355 property:P641 ?r . ?r rdf:type ontology:Q349 }
association football
Football association football was that person a part of
association football
action filter_type
action find
entity Trevor Finnigan
relation sport
type sport
['Trevor Finnigan', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?r WHERE { resource:Trevor_Finnigan property:sport ?r . ?r rdf:type ontology:sport }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q2736 Q6755422
P641
Q502895
USER
Is Marc Broude known to play that sport ?
(Q6755422,P641,Q2736)
action is_in
entity Q6755422
action find
entity Q2736
relation P641
['Q6755422', 'P641', 'Q2736']
ASK WHERE { resource:Q2736 property:P641 resource:Q6755422 }
association football Marc Broude
action is_in
entity Marc Broude
action find
entity association football
relation sport
['Marc Broude', 'sport', 'association football']
ASK WHERE { resource:association_football property:sport resource:Marc_Broude }
[]
common name
SYSTEM
NO
(Q6755422,P641,Q2736)
action is_in
entity Q6755422
action find
entity Q2736
relation P641
[ANSWER]
['Q6755422', 'P641', 'Q2736']
ASK WHERE { resource:Q2736 property:P641 resource:Q6755422 }
No
action is_in
entity Marc Broude
action find
entity association football
relation sport
['Marc Broude', 'sport', 'association football']
ASK WHERE { resource:association_football property:sport resource:Marc_Broude }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments are played by atleast 1820 people ?
(c(Q502895),P1303,c(Q34379))
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1820
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?a ) AS ?n ) WHERE { ?m rdf:type ontology:Q34379 . ?a rdf:type ontology:Q502895 . ?a property:P1303 ?m } GROUP BY ?m } . FILTER ( ?n >= 1820 ) }
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1820
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?a ) AS ?n ) WHERE { ?m rdf:type ontology:musical_instrument . ?a rdf:type ontology:common_name . ?a property:instrument ?m } GROUP BY ?m } . FILTER ( ?n >= 1820 ) }
[]
musical instrument common name
Q5994 Q8355 Q1444
SYSTEM
piano, violin, organ
Q5994 Q8355 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1820
[ANSWERS] are played by atleast 1820 people
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?a ) AS ?n ) WHERE { ?m rdf:type ontology:Q34379 . ?a rdf:type ontology:Q502895 . ?a property:P1303 ?m } GROUP BY ?m } . FILTER ( ?n >= 1820 ) }
piano violin organ drum kit
Piano, violin and organ are played by atleast 1820 people
piano violin organ
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1820
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?a ) AS ?n ) WHERE { ?m rdf:type ontology:musical_instrument . ?a rdf:type ontology:common_name . ?a property:instrument ?m } GROUP BY ?m } . FILTER ( ?n >= 1820 ) }
[]