Simple Question (Direct)
Simple Question
Q11731477
P241
Q781132
USER
Which military branch contains Józef Szostak as its part ?
(Q11731477,P241,c(Q781132))
action filter_type
action find
entity Q11731477
relation P241
type Q781132
['Q11731477', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?u WHERE { resource:Q11731477 property:P241 ?u . ?u rdf:type ontology:Q781132 }
Józef Szostak
action filter_type
action find
entity Józef Szostak
relation military branch
type military branch
['Józef Szostak', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?u WHERE { resource:Józef_Szostak property:military_branch ?u . ?u rdf:type ontology:military_branch }
[]
military branch
Q11737524
SYSTEM
cavalry of Second Polish Republic
Q11737524
(Q11731477,P241,c(Q781132))
action filter_type
action find
entity Q11731477
relation P241
type Q781132
[ANSWER]
['Q11731477', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?u WHERE { resource:Q11731477 property:P241 ?u . ?u rdf:type ontology:Q781132 }
cavalry of Second Polish Republic
cavalry of Second Polish Republic
action filter_type
action find
entity Józef Szostak
relation military branch
type military branch
['Józef Szostak', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?u WHERE { resource:Józef_Szostak property:military_branch ?u . ?u rdf:type ontology:military_branch }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q11737524
P17
Q7275
USER
Which state is that military branch situated in ?
(Q11737524,P17,c(Q7275))
action filter_type
action find
entity Q11737524
relation P17
type Q7275
['Q11737524', 'P17', {'concept': 'Q7275'}]
SELECT DISTINCT ?l WHERE { resource:Q11737524 property:P17 ?l . ?l rdf:type ontology:Q7275 }
cavalry of Second Polish Republic
action filter_type
action find
entity cavalry of Second Polish Republic
relation country
type state
['cavalry of Second Polish Republic', 'country', {'concept': 'state'}]
SELECT DISTINCT ?l WHERE { resource:cavalry_of_Second_Polish_Republic property:country ?l . ?l rdf:type ontology:state }
[]
state
Q207272
SYSTEM
Second Polish Republic
Q207272
(Q11737524,P17,c(Q7275))
action filter_type
action find
entity Q11737524
relation P17
type Q7275
[ANSWER]
['Q11737524', 'P17', {'concept': 'Q7275'}]
SELECT DISTINCT ?l WHERE { resource:Q11737524 property:P17 ?l . ?l rdf:type ontology:Q7275 }
Second Polish Republic
Second Polish Republic
action filter_type
action find
entity cavalry of Second Polish Republic
relation country
type state
['cavalry of Second Polish Republic', 'country', {'concept': 'state'}]
SELECT DISTINCT ?l WHERE { resource:cavalry_of_Second_Polish_Republic property:country ?l . ?l rdf:type ontology:state }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q207272
P1376
Q56061
USER
Which administrative territory is the capital of that state ?
(c(Q56061),P1376,Q207272)
action filter_type
action find_reverse
entity Q207272
relation P1376
type Q56061
[{'concept': 'Q56061'}, 'P1376', 'Q207272']
SELECT DISTINCT ?i WHERE { ?i property:P1376 resource:Q207272 . ?i rdf:type ontology:Q56061 }
Second Polish Republic
action filter_type
action find_reverse
entity Second Polish Republic
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Second Polish Republic']
SELECT DISTINCT ?i WHERE { ?i property:capital_of resource:Second_Polish_Republic . ?i rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q270
SYSTEM
Warsaw
Q270
(c(Q56061),P1376,Q207272)
action filter_type
action find_reverse
entity Q207272
relation P1376
type Q56061
[ANSWER]
[{'concept': 'Q56061'}, 'P1376', 'Q207272']
SELECT DISTINCT ?i WHERE { ?i property:P1376 resource:Q207272 . ?i rdf:type ontology:Q56061 }
Warsaw
Warsaw
action filter_type
action find_reverse
entity Second Polish Republic
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Second Polish Republic']
SELECT DISTINCT ?i WHERE { ?i property:capital_of resource:Second_Polish_Republic . ?i rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P532
Q56061 Q2235308
USER
Which ship types have around 2 administrative territories as registry port ?
(c(Q2235308),P532,c(Q56061))
action approx
action find_tuple_counts
relation P532
type Q2235308
type Q56061
value 2
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?z ) AS ?x ) WHERE { ?g rdf:type ontology:Q2235308 . ?z rdf:type ontology:Q56061 . ?g property:P532 ?z } GROUP BY ?g } . FILTER ( ?x = 2 ) }
action approx
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
value 2
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?z ) AS ?x ) WHERE { ?g rdf:type ontology:ship_type . ?z rdf:type ontology:administrative_territorial_entity . ?g property:port_of_registry ?z } GROUP BY ?g } . FILTER ( ?x = 2 ) }
[]
administrative territorial entity ship type
Q2596850 Q468026 Q33209
SYSTEM
MS Azura, SS Maxim Gorkiy, Mary Celeste
Q33209 Q1514518 Q2596850 Q468026
(c(Q2235308),P532,c(Q56061))
action approx
action find_tuple_counts
relation P532
type Q2235308
type Q56061
value 2
[ANSWERS]
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?z ) AS ?x ) WHERE { ?g rdf:type ontology:Q2235308 . ?z rdf:type ontology:Q56061 . ?g property:P532 ?z } GROUP BY ?g } . FILTER ( ?x = 2 ) }
Mary Celeste Sapphire Princess MS Azura SS Maxim Gorkiy
MS Azura SS Maxim Gorkiy Mary Celeste
action approx
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
value 2
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?z ) AS ?x ) WHERE { ?g rdf:type ontology:ship_type . ?z rdf:type ontology:administrative_territorial_entity . ?g property:port_of_registry ?z } GROUP BY ?g } . FILTER ( ?x = 2 ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q2596850
P516
Q16058315
USER
What is used to power that ship type ?
(Q2596850,P516,c(Q16058315))
action filter_type
action find
entity Q2596850
relation P516
type Q16058315
['Q2596850', 'P516', {'concept': 'Q16058315'}]
SELECT DISTINCT ?b WHERE { resource:Q2596850 property:P516 ?b . ?b rdf:type ontology:Q16058315 }
MS Azura
action filter_type
action find
entity MS Azura
relation powerplant
type combustion engine
['MS Azura', 'powerplant', {'concept': 'combustion engine'}]
SELECT DISTINCT ?b WHERE { resource:MS_Azura property:powerplant ?b . ?b rdf:type ontology:combustion_engine }
[]
combustion engine
Clarification for simple ques.
Q2596850
SYSTEM
Did you mean MS Azura ?
Q2596850 Q468026 Q33209
(Q2596850,P516,c(Q16058315)) (Q468026,P516,c(Q16058315)) (Q33209,P516,c(Q16058315))
[ANSWER]
['Q2596850', 'P516', {'concept': 'Q16058315'}] ['Q468026', 'P516', {'concept': 'Q16058315'}] ['Q33209', 'P516', {'concept': 'Q16058315'}]
SELECT DISTINCT ?b WHERE { resource:Q2596850 property:P516 ?b . ?b rdf:type ontology:Q16058315 }
MS Azura SS Maxim Gorkiy Mary Celeste
Did you mean MS Azura ?
MS Azura
['MS Azura', 'powerplant', {'concept': 'combustion engine'}] ['SS Maxim Gorkiy', 'powerplant', {'concept': 'combustion engine'}] ['Mary Celeste', 'powerplant', {'concept': 'combustion engine'}]
SELECT DISTINCT ?b WHERE { resource:MS_Azura property:powerplant ?b . ?b rdf:type ontology:combustion_engine }
[]
Simple Question (Coreferenced)
USER
Yes
(Q2596850,P516,c(Q16058315))
['Q2596850', 'P516', {'concept': 'Q16058315'}]
['MS Azura', 'powerplant', {'concept': 'combustion engine'}]
[]
Q174174
SYSTEM
diesel engine
Q174174
(Q2596850,P516,c(Q16058315))
action filter_type
action find
entity Q2596850
relation P516
type Q16058315
[ANSWER]
['Q2596850', 'P516', {'concept': 'Q16058315'}]
SELECT DISTINCT ?b WHERE { resource:Q2596850 property:P516 ?b . ?b rdf:type ontology:Q16058315 }
diesel engine
diesel engine
action filter_type
action find
entity MS Azura
relation powerplant
type combustion engine
['MS Azura', 'powerplant', {'concept': 'combustion engine'}]
SELECT DISTINCT ?b WHERE { resource:MS_Azura property:powerplant ?b . ?b rdf:type ontology:combustion_engine }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Indirect
P516
Q16058315 Q2235308
USER
Which combustion engines powers less number of ship types than that combustion engine ?
(c(Q2235308),P516,c(Q16058315))
action less
action find_reverse_tuple_counts
relation P516
type Q16058315
type Q2235308
action count
action filter_type
action find_reverse
entity Q174174
relation P516
type Q2235308
[{'concept': 'Q2235308'}, 'P516', {'concept': 'Q16058315'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?q ) AS ?n ) WHERE { ?q property:P516 ?b . ?b rdf:type ontology:Q16058315 . ?q rdf:type ontology:Q2235308 } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?r ) WHERE { ?f property:P516 resource:Q174174 . ?f rdf:type ontology:Q2235308 } } . FILTER ( ?n < ?r ) }
action less
action find_reverse_tuple_counts
relation powerplant
type combustion engine
type ship type
action count
action filter_type
action find_reverse
entity diesel engine
relation powerplant
type ship type
[{'concept': 'ship type'}, 'powerplant', {'concept': 'combustion engine'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?q ) AS ?n ) WHERE { ?q property:powerplant ?b . ?b rdf:type ontology:combustion_engine . ?q rdf:type ontology:ship_type } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?r ) WHERE { ?f property:powerplant resource:diesel_engine . ?f rdf:type ontology:ship_type } } . FILTER ( ?n < ?r ) }
[]
combustion engine ship type
Q12760 Q7941282 Q186212
SYSTEM
steam engine, Volvo B18 engine, Stirling engine
Q1528375 Q7941282 Q6018565 Q743004 Q186212 Q335225 Q12760 Q1498468 Q630010
(c(Q2235308),P516,c(Q16058315))
action less
action find_reverse_tuple_counts
relation P516
type Q16058315
type Q2235308
action count
action filter_type
action find_reverse
entity Q174174
relation P516
type Q2235308
[ANSWERS]
[{'concept': 'Q2235308'}, 'P516', {'concept': 'Q16058315'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?q ) AS ?n ) WHERE { ?q property:P516 ?b . ?b rdf:type ontology:Q16058315 . ?q rdf:type ontology:Q2235308 } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?r ) WHERE { ?f property:P516 resource:Q174174 . ?f rdf:type ontology:Q2235308 } } . FILTER ( ?n < ?r ) }
Volvo B30 engine Volvo B18 engine combustion motor aircraft engine Stirling engine rocket engine steam engine hydrogen internal combustion engine reciprocating engine
steam engine Volvo B18 engine Stirling engine
action less
action find_reverse_tuple_counts
relation powerplant
type combustion engine
type ship type
action count
action filter_type
action find_reverse
entity diesel engine
relation powerplant
type ship type
[{'concept': 'ship type'}, 'powerplant', {'concept': 'combustion engine'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?q ) AS ?n ) WHERE { ?q property:powerplant ?b . ?b rdf:type ontology:combustion_engine . ?q rdf:type ontology:ship_type } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?r ) WHERE { ?f property:powerplant resource:diesel_engine . ?f rdf:type ontology:ship_type } } . FILTER ( ?n < ?r ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q12760
P1056
Q43229
USER
Who is the producer of steam engine ?
(c(Q43229),P1056,Q12760)
action filter_type
action find_reverse
entity Q12760
relation P1056
type Q43229
[{'concept': 'Q43229'}, 'P1056', 'Q12760']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q43229 . ?e property:P1056 resource:Q12760 }
steam engine
action filter_type
action find_reverse
entity steam engine
relation product
type organization
[{'concept': 'organization'}, 'product', 'steam engine']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:organization . ?e property:product resource:steam_engine }
[]
organization
Q7958453
SYSTEM
W & J Galloway & Sons
Q7958453
(c(Q43229),P1056,Q12760)
action filter_type
action find_reverse
entity Q12760
relation P1056
type Q43229
[ANSWER]
[{'concept': 'Q43229'}, 'P1056', 'Q12760']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q43229 . ?e property:P1056 resource:Q12760 }
W & J Galloway & Sons
W & J Galloway & Sons
action filter_type
action find_reverse
entity steam engine
relation product
type organization
[{'concept': 'organization'}, 'product', 'steam engine']
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:organization . ?e property:product resource:steam_engine }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q12760
P921
Q571
USER
Which book has that combustion engine as its main topic ?
(c(Q571),P921,Q7958453)
action filter_type
action find_reverse
entity Q12760
relation P921
type Q571
[{'concept': 'Q571'}, 'P921', 'Q7958453']
SELECT DISTINCT ?i WHERE { ?i property:P921 resource:Q12760 . ?i rdf:type ontology:Q571 }
steam engine
action filter_type
action find_reverse
entity steam engine
relation main subject
type book
[{'concept': 'book'}, 'main subject', 'W & J Galloway & Sons']
SELECT DISTINCT ?i WHERE { ?i property:main_subject resource:steam_engine . ?i rdf:type ontology:book }
[]
book
Q19099885
SYSTEM
The Steam Turbine
Q19099885
(c(Q571),P921,Q7958453)
action filter_type
action find_reverse
entity Q12760
relation P921
type Q571
[ANSWER]
[{'concept': 'Q571'}, 'P921', 'Q7958453']
SELECT DISTINCT ?i WHERE { ?i property:P921 resource:Q12760 . ?i rdf:type ontology:Q571 }
The Steam Turbine
The Steam Turbine
action filter_type
action find_reverse
entity steam engine
relation main subject
type book
[{'concept': 'book'}, 'main subject', 'W & J Galloway & Sons']
SELECT DISTINCT ?i WHERE { ?i property:main_subject resource:steam_engine . ?i rdf:type ontology:book }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q12760
P61
Q502895
USER
How many people discovered or invented steam engine ?
(Q12760,P61,c(Q502895))
action count
action filter_type
action find
entity Q12760
relation P61
type Q502895
['Q12760', 'P61', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?x ) WHERE { ?m rdf:type ontology:Q502895 . resource:Q12760 property:P61 ?m }
steam engine
action count
action filter_type
action find
entity steam engine
relation discoverer or inventor
type common name
['steam engine', 'discoverer or inventor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?x ) WHERE { ?m rdf:type ontology:common_name . resource:steam_engine property:discoverer_or_inventor ?m }
[]
common name
SYSTEM
2
Q193042 Q9041
(Q12760,P61,c(Q502895))
action count
action filter_type
action find
entity Q12760
relation P61
type Q502895
[ANSWER]
['Q12760', 'P61', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?x ) WHERE { ?m rdf:type ontology:Q502895 . resource:Q12760 property:P61 ?m }
Thomas Newcomen James Watt
2
action count
action filter_type
action find
entity steam engine
relation discoverer or inventor
type common name
['steam engine', 'discoverer or inventor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?x ) WHERE { ?m rdf:type ontology:common_name . resource:steam_engine property:discoverer_or_inventor ?m }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q153017
P61
Q502895
USER
And how about 4217 Engelhardt?
(Q153017,P61,c(Q502895))
action count
action filter_type
action find
entity Q153017
relation P61
type Q502895
['Q153017', 'P61', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?c ) WHERE { resource:Q153017 property:P61 ?a . ?a rdf:type ontology:Q502895 }
4217 Engelhardt
action count
action filter_type
action find
entity 4217 Engelhardt
relation discoverer or inventor
type common name
['4217 Engelhardt', 'discoverer or inventor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?c ) WHERE { resource:4217_Engelhardt property:discoverer_or_inventor ?a . ?a rdf:type ontology:common_name }
[]
common name
SYSTEM
1
Q231618
(Q153017,P61,c(Q502895))
action count
action filter_type
action find
entity Q153017
relation P61
type Q502895
[ANSWER]
['Q153017', 'P61', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?c ) WHERE { resource:Q153017 property:P61 ?a . ?a rdf:type ontology:Q502895 }
Carolyn S. Shoemaker
1
action count
action filter_type
action find
entity 4217 Engelhardt
relation discoverer or inventor
type common name
['4217 Engelhardt', 'discoverer or inventor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?c ) WHERE { resource:4217_Engelhardt property:discoverer_or_inventor ?a . ?a rdf:type ontology:common_name }
[]