Simple Question (Direct)
Simple Question
Q6201334
P641
Q349
USER
Which sport did Jimmy Soye participate in ?
(Q6201334,P641,c(Q349))
action filter_type
action find
entity Q6201334
relation P641
type Q349
['Q6201334', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q349 . resource:Q6201334 property:P641 ?g }
Jimmy Soye
action filter_type
action find
entity Jimmy Soye
relation sport
type sport
['Jimmy Soye', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:sport . resource:Jimmy_Soye property:sport ?g }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q6201334,P641,c(Q349))
action filter_type
action find
entity Q6201334
relation P641
type Q349
Jimmy Soye participated in [ANSWER]
['Q6201334', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q349 . resource:Q6201334 property:P641 ?g }
association football
Jimmy Soye participated in association football
association football
action filter_type
action find
entity Jimmy Soye
relation sport
type sport
['Jimmy Soye', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:sport . resource:Jimmy_Soye property:sport ?g }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2736
P495
Q1496967
USER
What is the country of origin of that sport ?
(Q2736,P495,c(Q1496967))
action filter_type
action find
entity Q2736
relation P495
type Q1496967
['Q2736', 'P495', {'concept': 'Q1496967'}]
SELECT DISTINCT ?q WHERE { resource:Q2736 property:P495 ?q . ?q rdf:type ontology:Q1496967 }
association football
action filter_type
action find
entity association football
relation country of origin
type territorial entity
['association football', 'country of origin', {'concept': 'territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:association_football property:country_of_origin ?q . ?q rdf:type ontology:territorial_entity }
[]
territorial entity
Q21
SYSTEM
England
Q21
(Q2736,P495,c(Q1496967))
action filter_type
action find
entity Q2736
relation P495
type Q1496967
The country of origin of that sport is in [ANSWER]
['Q2736', 'P495', {'concept': 'Q1496967'}]
SELECT DISTINCT ?q WHERE { resource:Q2736 property:P495 ?q . ?q rdf:type ontology:Q1496967 }
England
The country of origin of that sport is in England
England
action filter_type
action find
entity association football
relation country of origin
type territorial entity
['association football', 'country of origin', {'concept': 'territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:association_football property:country_of_origin ?q . ?q rdf:type ontology:territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q19895894
Q1496967
USER
And how about Sir George Tressady?
(Q19895894,P495,c(Q1496967))
action filter_type
action find
entity Q19895894
relation P495
type Q1496967
['Q19895894', 'P495', {'concept': 'Q1496967'}]
SELECT DISTINCT ?x WHERE { resource:Q19895894 property:P495 ?x . ?x rdf:type ontology:Q1496967 }
Sir George Tressady
action filter_type
action find
entity Sir George Tressady
relation country of origin
type territorial entity
['Sir George Tressady', 'country of origin', {'concept': 'territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Sir_George_Tressady property:country_of_origin ?x . ?x rdf:type ontology:territorial_entity }
[]
territorial entity
Q21
SYSTEM
England
Q21
(Q19895894,P495,c(Q1496967))
action filter_type
action find
entity Q19895894
relation P495
type Q1496967
[ANSWER]
['Q19895894', 'P495', {'concept': 'Q1496967'}]
SELECT DISTINCT ?x WHERE { resource:Q19895894 property:P495 ?x . ?x rdf:type ontology:Q1496967 }
England
England
action filter_type
action find
entity Sir George Tressady
relation country of origin
type territorial entity
['Sir George Tressady', 'country of origin', {'concept': 'territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Sir_George_Tressady property:country_of_origin ?x . ?x rdf:type ontology:territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P840
Q1496967 Q15416 Q838948
USER
How many territories are the narrative locations of around the same number of television programs or works of art as that territory ?
(c(Q15416)|c(Q838948),P840,c(Q1496967))
action count
action approx
action union
action find_reverse_tuple_counts
relation P840
type Q1496967
type Q15416
action find_reverse_tuple_counts
relation P840
type Q1496967
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q21
relation P840
type Q15416
type Q838948
[[{'concept': 'Q15416'}, {'concept': 'Q838948'}], 'P840', {'concept': 'Q1496967'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?q ) AS ?z ) WHERE { ?q rdf:type ?i . VALUES ( ?i ) { ( ontology:Q15416 ) ( ontology:Q838948 ) } } GROUP BY ?u } . FILTER ( ?z = ?x ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?x ) WHERE { ?p property:P840 resource:Q21 . { VALUES ( ?w ) { ( ontology:Q15416 ) ( ontology:Q838948 ) } . ?p rdf:type ?w } } } }
action count
action approx
action union
action find_reverse_tuple_counts
relation narrative location
type territorial entity
type television program
action find_reverse_tuple_counts
relation narrative location
type territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity England
relation narrative location
type television program
type work of art
[[{'concept': 'television program'}, {'concept': 'work of art'}], 'narrative location', {'concept': 'territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?q ) AS ?z ) WHERE { ?q rdf:type ?i . VALUES ( ?i ) { ( ontology:television_program ) ( ontology:work_of_art ) } } GROUP BY ?u } . FILTER ( ?z = ?x ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?x ) WHERE { ?p property:narrative_location resource:England . { VALUES ( ?w ) { ( ontology:television_program ) ( ontology:work_of_art ) } . ?p rdf:type ?w } } } }
[]
territorial entity television program work of art
SYSTEM
1
Q21
(c(Q15416)|c(Q838948),P840,c(Q1496967))
action count
action approx
action union
action find_reverse_tuple_counts
relation P840
type Q1496967
type Q15416
action find_reverse_tuple_counts
relation P840
type Q1496967
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q21
relation P840
type Q15416
type Q838948
[ANSWER]
[[{'concept': 'Q15416'}, {'concept': 'Q838948'}], 'P840', {'concept': 'Q1496967'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?q ) AS ?z ) WHERE { ?q rdf:type ?i . VALUES ( ?i ) { ( ontology:Q15416 ) ( ontology:Q838948 ) } } GROUP BY ?u } . FILTER ( ?z = ?x ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?x ) WHERE { ?p property:P840 resource:Q21 . { VALUES ( ?w ) { ( ontology:Q15416 ) ( ontology:Q838948 ) } . ?p rdf:type ?w } } } }
England
1
action count
action approx
action union
action find_reverse_tuple_counts
relation narrative location
type territorial entity
type television program
action find_reverse_tuple_counts
relation narrative location
type territorial entity
type work of art
action count
action filter_multi_types
action find_reverse
entity England
relation narrative location
type television program
type work of art
[[{'concept': 'television program'}, {'concept': 'work of art'}], 'narrative location', {'concept': 'territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?q ) AS ?z ) WHERE { ?q rdf:type ?i . VALUES ( ?i ) { ( ontology:television_program ) ( ontology:work_of_art ) } } GROUP BY ?u } . FILTER ( ?z = ?x ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?x ) WHERE { ?p property:narrative_location resource:England . { VALUES ( ?w ) { ( ontology:television_program ) ( ontology:work_of_art ) } . ?p rdf:type ?w } } } }
[]