Simple Question (Direct)
Simple Question
Q102462
P241
Q327333
USER
Which government agency did James Stewart belong to ?
(Q102462,P241,c(Q327333))
action filter_type
action find
entity Q102462
relation P241
type Q327333
['Q102462', 'P241', {'concept': 'Q327333'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q327333 . resource:Q102462 property:P241 ?z }
James Stewart
action filter_type
action find
entity James Stewart
relation military branch
type government agency
['James Stewart', 'military branch', {'concept': 'government agency'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:government_agency . resource:James_Stewart property:military_branch ?z }
[]
government agency
Q407191
SYSTEM
Air Force Reserve Command
Q407191
(Q102462,P241,c(Q327333))
action filter_type
action find
entity Q102462
relation P241
type Q327333
James Stewart belonged to [ANSWER]
['Q102462', 'P241', {'concept': 'Q327333'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q327333 . resource:Q102462 property:P241 ?z }
Air Force Reserve Command
James Stewart belonged to Air Force Reserve Command
Air Force Reserve Command
action filter_type
action find
entity James Stewart
relation military branch
type government agency
['James Stewart', 'military branch', {'concept': 'government agency'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:government_agency . resource:James_Stewart property:military_branch ?z }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q102462
P20
Q56061
USER
Where did the expiration of James Stewart occur ?
(Q102462,P20,c(Q56061))
action filter_type
action find
entity Q102462
relation P20
type Q56061
['Q102462', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { resource:Q102462 property:P20 ?k . ?k rdf:type ontology:Q56061 }
James Stewart
action filter_type
action find
entity James Stewart
relation place of death
type administrative territorial entity
['James Stewart', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:James_Stewart property:place_of_death ?k . ?k rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q127856
SYSTEM
Beverly Hills
Q127856
(Q102462,P20,c(Q56061))
action filter_type
action find
entity Q102462
relation P20
type Q56061
The expiration of James Stewart occurred in [ANSWER]
['Q102462', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { resource:Q102462 property:P20 ?k . ?k rdf:type ontology:Q56061 }
Beverly Hills
The expiration of James Stewart occurred in Beverly Hills
Beverly Hills
action filter_type
action find
entity James Stewart
relation place of death
type administrative territorial entity
['James Stewart', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:James_Stewart property:place_of_death ?k . ?k rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P532
Q56061 Q2235308
USER
How many ship types have approximately 3 administrative territories as registry port ?
(c(Q2235308),P532,c(Q56061))
action count
action approx
action find_tuple_counts
relation P532
type Q2235308
type Q56061
value 3
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?i ) AS ?s ) WHERE { ?i rdf:type ontology:Q56061 . ?v rdf:type ontology:Q2235308 . ?v property:P532 ?i } GROUP BY ?v } . FILTER ( ?s = 3 ) }
action count
action approx
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
value 3
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?i ) AS ?s ) WHERE { ?i rdf:type ontology:administrative_territorial_entity . ?v rdf:type ontology:ship_type . ?v property:port_of_registry ?i } GROUP BY ?v } . FILTER ( ?s = 3 ) }
[]
administrative territorial entity ship type
SYSTEM
1
Q11707059
(c(Q2235308),P532,c(Q56061))
action count
action approx
action find_tuple_counts
relation P532
type Q2235308
type Q56061
value 3
[ANSWER]
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?i ) AS ?s ) WHERE { ?i rdf:type ontology:Q56061 . ?v rdf:type ontology:Q2235308 . ?v property:P532 ?i } GROUP BY ?v } . FILTER ( ?s = 3 ) }
MS Arrow
1
action count
action approx
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
value 3
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?i ) AS ?s ) WHERE { ?i rdf:type ontology:administrative_territorial_entity . ?v rdf:type ontology:ship_type . ?v property:port_of_registry ?i } GROUP BY ?v } . FILTER ( ?s = 3 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q127856
P840
Q15416
USER
Which television programs have their setting located at Beverly Hills ?
(c(Q15416),P840,Q127856)
action filter_type
action find_reverse
entity Q127856
relation P840
type Q15416
[{'concept': 'Q15416'}, 'P840', 'Q127856']
SELECT DISTINCT ?v WHERE { ?v property:P840 resource:Q127856 . ?v rdf:type ontology:Q15416 }
Beverly Hills
action filter_type
action find_reverse
entity Beverly Hills
relation narrative location
type television program
[{'concept': 'television program'}, 'narrative location', 'Beverly Hills']
SELECT DISTINCT ?v WHERE { ?v property:narrative_location resource:Beverly_Hills . ?v rdf:type ontology:television_program }
[]
television program
Q117590 Q276071 Q7759591
SYSTEM
Beverly Hills, 90210, 90210, The Real Housewives of Beverly Hills
Q276071 Q941737 Q117590 Q7759591 Q2559315 Q5302911 Q4899547
(c(Q15416),P840,Q127856)
action filter_type
action find_reverse
entity Q127856
relation P840
type Q15416
[ANSWERS] have their setting located at Beverly Hills
[{'concept': 'Q15416'}, 'P840', 'Q127856']
SELECT DISTINCT ?v WHERE { ?v property:P840 resource:Q127856 . ?v rdf:type ontology:Q15416 }
90210 The Beverly Hillbillies Beverly Hills, 90210 The Real Housewives of Beverly Hills Dr. 90210 Down and Out in Beverly Hills Beverly Hills Bordello
Beverly Hills, 90210, 90210 and The Real Housewives of Beverly Hills have their setting located at Beverly Hills
Beverly Hills, 90210 90210 The Real Housewives of Beverly Hills
action filter_type
action find_reverse
entity Beverly Hills
relation narrative location
type television program
[{'concept': 'television program'}, 'narrative location', 'Beverly Hills']
SELECT DISTINCT ?v WHERE { ?v property:narrative_location resource:Beverly_Hills . ?v rdf:type ontology:television_program }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q127856
P1408
Q4830453
USER
Which business enterprise has procured license for broadcasting to Beverly Hills ?
(c(Q4830453),P1408,Q127856)
action filter_type
action find_reverse
entity Q127856
relation P1408
type Q4830453
[{'concept': 'Q4830453'}, 'P1408', 'Q127856']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q4830453 . ?x property:P1408 resource:Q127856 }
Beverly Hills
action filter_type
action find_reverse
entity Beverly Hills
relation licensed to broadcast to
type business enterprise
[{'concept': 'business enterprise'}, 'licensed to broadcast to', 'Beverly Hills']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:business_enterprise . ?x property:licensed_to_broadcast_to resource:Beverly_Hills }
[]
business enterprise
Q6334100
SYSTEM
KBOQ
Q6334100
(c(Q4830453),P1408,Q127856)
action filter_type
action find_reverse
entity Q127856
relation P1408
type Q4830453
[ANSWER] has procured license for broadcasting to Beverly Hills
[{'concept': 'Q4830453'}, 'P1408', 'Q127856']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q4830453 . ?x property:P1408 resource:Q127856 }
KBOQ
KBOQ has procured license for broadcasting to Beverly Hills
KBOQ
action filter_type
action find_reverse
entity Beverly Hills
relation licensed to broadcast to
type business enterprise
[{'concept': 'business enterprise'}, 'licensed to broadcast to', 'Beverly Hills']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:business_enterprise . ?x property:licensed_to_broadcast_to resource:Beverly_Hills }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q127856
P17
Q15617994
USER
Which administrative territory is that administrative territory present in ?
(Q6334100,P17,c(Q15617994))
action filter_type
action find
entity Q127856
relation P17
type Q15617994
['Q6334100', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q127856 property:P17 ?f . ?f rdf:type ontology:Q15617994 }
Beverly Hills
action filter_type
action find
entity Beverly Hills
relation country
type designation for an administrative territorial entity
['KBOQ', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Beverly_Hills property:country ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q6334100,P17,c(Q15617994))
action filter_type
action find
entity Q127856
relation P17
type Q15617994
That administrative territory is the [ANSWER]
['Q6334100', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q127856 property:P17 ?f . ?f rdf:type ontology:Q15617994 }
United States of America
That administrative territory is the United States of America
United States of America
action filter_type
action find
entity Beverly Hills
relation country
type designation for an administrative territorial entity
['KBOQ', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Beverly_Hills property:country ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q30
P530
Q15617994
USER
How many administrative territories holds diplomatic relationship with United States of America ?
(Q30,P530,c(Q15617994))
action count
action filter_type
action find
entity Q30
relation P530
type Q15617994
['Q30', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?i ) WHERE { ?w rdf:type ontology:Q15617994 . resource:Q30 property:P530 ?w }
United States of America
action count
action filter_type
action find
entity United States of America
relation diplomatic relation
type designation for an administrative territorial entity
['United States of America', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?i ) WHERE { ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:United_States_of_America property:diplomatic_relation ?w }
[]
designation for an administrative territorial entity
SYSTEM
17
Q805 Q159 Q222 Q801 Q155 Q148 Q796 Q347 Q17 Q37 Q889 Q668 Q403 Q1011 Q38 Q414 Q953
(Q30,P530,c(Q15617994))
action count
action filter_type
action find
entity Q30
relation P530
type Q15617994
[ANSWER]
['Q30', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?i ) WHERE { ?w rdf:type ontology:Q15617994 . resource:Q30 property:P530 ?w }
Yemen Russia Albania Israel Brazil People's Republic of China Iraq Liechtenstein Japan Lithuania Afghanistan India Serbia Cape Verde Italy Argentina Zambia
17
action count
action filter_type
action find
entity United States of America
relation diplomatic relation
type designation for an administrative territorial entity
['United States of America', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?i ) WHERE { ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:United_States_of_America property:diplomatic_relation ?w }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q189
P530
Q15617994
USER
And also tell me about Iceland?
(Q189,P530,c(Q15617994))
action count
action filter_type
action find
entity Q189
relation P530
type Q15617994
['Q189', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?s ) WHERE { resource:Q189 property:P530 ?a . ?a rdf:type ontology:Q15617994 }
Iceland
action count
action filter_type
action find
entity Iceland
relation diplomatic relation
type designation for an administrative territorial entity
['Iceland', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?s ) WHERE { resource:Iceland property:diplomatic_relation ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q38
(Q189,P530,c(Q15617994))
action count
action filter_type
action find
entity Q189
relation P530
type Q15617994
[ANSWER]
['Q189', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?s ) WHERE { resource:Q189 property:P530 ?a . ?a rdf:type ontology:Q15617994 }
Italy
1
action count
action filter_type
action find
entity Iceland
relation diplomatic relation
type designation for an administrative territorial entity
['Iceland', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?s ) WHERE { resource:Iceland property:diplomatic_relation ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q183
Q15617994
USER
And how about Germany?
(Q183,P530,c(Q15617994))
action count
action filter_type
action find
entity Q183
relation P530
type Q15617994
['Q183', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) WHERE { resource:Q183 property:P530 ?c . ?c rdf:type ontology:Q15617994 }
Germany
action count
action filter_type
action find
entity Germany
relation diplomatic relation
type designation for an administrative territorial entity
['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) WHERE { resource:Germany property:diplomatic_relation ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
124
(Q183,P530,c(Q15617994))
action count
action filter_type
action find
entity Q183
relation P530
type Q15617994
[ANSWER]
['Q183', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) WHERE { resource:Q183 property:P530 ?c . ?c rdf:type ontology:Q15617994 }
124
action count
action filter_type
action find
entity Germany
relation diplomatic relation
type designation for an administrative territorial entity
['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) WHERE { resource:Germany property:diplomatic_relation ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relations with atleast 54 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action atleast
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 54
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?c ) AS ?j ) WHERE { ?p property:P530 ?c . ?p rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q15617994 } GROUP BY ?p } . FILTER ( ?j >= 54 ) }
action atleast
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 54
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?c ) AS ?j ) WHERE { ?p property:diplomatic_relation ?c . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?p } . FILTER ( ?j >= 54 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q230
SYSTEM
Italy, Georgia
Q38 Q230
(c(Q15617994),P530,c(Q15617994))
action atleast
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 54
[ANSWERS] have diplomatic relations with atleast 54 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?c ) AS ?j ) WHERE { ?p property:P530 ?c . ?p rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q15617994 } GROUP BY ?p } . FILTER ( ?j >= 54 ) }
Italy Georgia
Italy and Georgia have diplomatic relations with atleast 54 administrative territories
Italy Georgia
action atleast
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 54
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?c ) AS ?j ) WHERE { ?p property:diplomatic_relation ?c . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?p } . FILTER ( ?j >= 54 ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q6972061
P17
Q83620
USER
Are National Cycle Route 44 present in those administrative territories ?
(Q6972061,P17,Q38) (Q6972061,P17,Q230)
action is_in
entity prev_answer
action find
entity Q6972061
relation P17
['Q6972061', 'P17', 'Q38'] ['Q6972061', 'P17', 'Q230']
ASK WHERE { resource:Q6972061 property:P17 ?t . VALUES ( ?t ) { ( resource:Q38 ) ( resource:Q230 ) } }
National Cycle Route 44
action is_in
entity prev_answer
action find
entity National Cycle Route 44
relation country
['National Cycle Route 44', 'country', 'Italy'] ['National Cycle Route 44', 'country', 'Georgia']
ASK WHERE { resource:National_Cycle_Route_44 property:country ?t . VALUES ( ?t ) { ( resource:Italy ) ( resource:Georgia ) } }
[]
thoroughfare
SYSTEM
NO
(Q6972061,P17,Q38) (Q6972061,P17,Q230)
action is_in
entity prev_answer
action find
entity Q6972061
relation P17
[ANSWER]
['Q6972061', 'P17', 'Q38'] ['Q6972061', 'P17', 'Q230']
ASK WHERE { resource:Q6972061 property:P17 ?t . VALUES ( ?t ) { ( resource:Q38 ) ( resource:Q230 ) } }
No
action is_in
entity prev_answer
action find
entity National Cycle Route 44
relation country
['National Cycle Route 44', 'country', 'Italy'] ['National Cycle Route 44', 'country', 'Georgia']
ASK WHERE { resource:National_Cycle_Route_44 property:country ?t . VALUES ( ?t ) { ( resource:Italy ) ( resource:Georgia ) } }
[]