Simple Question (Direct)
Simple Question
Q1113745
P21
Q290
USER
What is the sex of Engelbert Klement ?
(Q1113745,P21,c(Q290))
action filter_type
action find
entity Q1113745
relation P21
type Q290
['Q1113745', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q290 . resource:Q1113745 property:P21 ?k }
Engelbert Klement
action filter_type
action find
entity Engelbert Klement
relation gender
type sex
['Engelbert Klement', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:sex . resource:Engelbert_Klement property:gender ?k }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1113745,P21,c(Q290))
action filter_type
action find
entity Q1113745
relation P21
type Q290
The sex of Engelbert Klement is the [ANSWER]
['Q1113745', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q290 . resource:Q1113745 property:P21 ?k }
male
The sex of Engelbert Klement is the male
male
action filter_type
action find
entity Engelbert Klement
relation gender
type sex
['Engelbert Klement', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:sex . resource:Engelbert_Klement property:gender ?k }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1113745
P19
Q56061
USER
Which administrative territory is the birthplace of Engelbert Klement ?
(Q1113745,P19,c(Q56061))
action filter_type
action find
entity Q1113745
relation P19
type Q56061
['Q1113745', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q1113745 property:P19 ?e . ?e rdf:type ontology:Q56061 }
Engelbert Klement
action filter_type
action find
entity Engelbert Klement
relation place of birth
type administrative territorial entity
['Engelbert Klement', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Engelbert_Klement property:place_of_birth ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1735
SYSTEM
Innsbruck
Q1735
(Q1113745,P19,c(Q56061))
action filter_type
action find
entity Q1113745
relation P19
type Q56061
[ANSWER] is the birthplace of Engelbert Klement
['Q1113745', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q1113745 property:P19 ?e . ?e rdf:type ontology:Q56061 }
Innsbruck
Innsbruck is the birthplace of Engelbert Klement
Innsbruck
action filter_type
action find
entity Engelbert Klement
relation place of birth
type administrative territorial entity
['Engelbert Klement', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Engelbert_Klement property:place_of_birth ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q1735 Q7846277 Q31487
P190
Q486972
USER
Is Innsbruck a sister city of Tropy Elbląskie and Kraków ?
(Q1735,P190,Q7846277) (Q1735,P190,Q31487)
action is_in
entity Q1735
action intersection
action find_reverse
entity Q7846277
relation P190
action find_reverse
entity Q31487
relation P190
['Q1735', 'P190', 'Q7846277'] ['Q1735', 'P190', 'Q31487']
ASK WHERE { resource:Q1735 property:P190 resource:Q7846277 . resource:Q1735 property:P190 resource:Q31487 }
Innsbruck Tropy Elbląskie Kraków
action is_in
entity Innsbruck
action intersection
action find_reverse
entity Tropy Elbląskie
relation sister city
action find_reverse
entity Kraków
relation sister city
['Innsbruck', 'sister city', 'Tropy Elbląskie'] ['Innsbruck', 'sister city', 'Kraków']
ASK WHERE { resource:Innsbruck property:sister_city resource:Tropy_Elbląskie . resource:Innsbruck property:sister_city resource:Kraków }
[]
human settlement
SYSTEM
NO and YES respectively
(Q1735,P190,Q7846277) (Q1735,P190,Q31487)
action is_in
entity Q1735
action intersection
action find_reverse
entity Q7846277
relation P190
action find_reverse
entity Q31487
relation P190
[ANSWER]
['Q1735', 'P190', 'Q7846277'] ['Q1735', 'P190', 'Q31487']
ASK WHERE { resource:Q1735 property:P190 resource:Q7846277 . resource:Q1735 property:P190 resource:Q31487 }
NO and YES respectively
action is_in
entity Innsbruck
action intersection
action find_reverse
entity Tropy Elbląskie
relation sister city
action find_reverse
entity Kraków
relation sister city
['Innsbruck', 'sister city', 'Tropy Elbląskie'] ['Innsbruck', 'sister city', 'Kraków']
ASK WHERE { resource:Innsbruck property:sister_city resource:Tropy_Elbląskie . resource:Innsbruck property:sister_city resource:Kraków }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1735
P17
Q1048835
USER
Which political territory is Innsbruck located in ?
(Q1735,P17,c(Q1048835))
action filter_type
action find
entity Q1735
relation P17
type Q1048835
['Q1735', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?n WHERE { resource:Q1735 property:P17 ?n . ?n rdf:type ontology:Q1048835 }
Innsbruck
action filter_type
action find
entity Innsbruck
relation country
type political territorial entity
['Innsbruck', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Innsbruck property:country ?n . ?n rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q40
SYSTEM
Austria
Q40
(Q1735,P17,c(Q1048835))
action filter_type
action find
entity Q1735
relation P17
type Q1048835
Innsbruck is located in [ANSWER]
['Q1735', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?n WHERE { resource:Q1735 property:P17 ?n . ?n rdf:type ontology:Q1048835 }
Austria
Innsbruck is located in Austria
Austria
action filter_type
action find
entity Innsbruck
relation country
type political territorial entity
['Innsbruck', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Innsbruck property:country ?n . ?n rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q40
P137
Q2424752
USER
Which products are the administrator of that political territory ?
(c(Q2424752),P137,Q40)
action filter_type
action find_reverse
entity Q40
relation P137
type Q2424752
[{'concept': 'Q2424752'}, 'P137', 'Q40']
SELECT DISTINCT ?h WHERE { ?h property:P137 resource:Q40 . ?h rdf:type ontology:Q2424752 }
Austria
action filter_type
action find_reverse
entity Austria
relation operator
type product
[{'concept': 'product'}, 'operator', 'Austria']
SELECT DISTINCT ?h WHERE { ?h property:operator resource:Austria . ?h rdf:type ontology:product }
[]
product
Q15411573 Q17501886 Q17501970
SYSTEM
Hercules C1, AB 212, SA 316B Alouette III
Q17501970 Q17501886 Q15411573 Q17501817 Q17501845
(c(Q2424752),P137,Q40)
action filter_type
action find_reverse
entity Q40
relation P137
type Q2424752
[ANSWERS] are the administrator of that political territory
[{'concept': 'Q2424752'}, 'P137', 'Q40']
SELECT DISTINCT ?h WHERE { ?h property:P137 resource:Q40 . ?h rdf:type ontology:Q2424752 }
SA 316B Alouette III AB 212 Hercules C1 Typhoon GS Typhoon AS
Hercules C1, AB 212 and SA 316B Alouette III are the administrator of that political territory
Hercules C1 AB 212 SA 316B Alouette III
action filter_type
action find_reverse
entity Austria
relation operator
type product
[{'concept': 'product'}, 'operator', 'Austria']
SELECT DISTINCT ?h WHERE { ?h property:operator resource:Austria . ?h rdf:type ontology:product }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q15411573 Q17501886 Q17501970
P121
Q1875621
USER
Who manage those products ?
(c(Q1875621),P121,Q15411573) (c(Q1875621),P121,Q17501886) (c(Q1875621),P121,Q17501970)
action filter_type
action find_reverse
entity prev_answer
relation P121
type Q1875621
[{'concept': 'Q1875621'}, 'P121', 'Q15411573'] [{'concept': 'Q1875621'}, 'P121', 'Q17501886'] [{'concept': 'Q1875621'}, 'P121', 'Q17501970']
SELECT DISTINCT ?u WHERE { VALUES ( ?o ) { ( resource:Q17501970 ) ( resource:Q17501886 ) ( resource:Q15411573 ) } . ?u property:P121 ?o . ?u rdf:type ontology:Q1875621 }
Hercules C1 AB 212 SA 316B Alouette III
action filter_type
action find_reverse
entity prev_answer
relation item operated
type aircraft class
[{'concept': 'aircraft class'}, 'item operated', 'Hercules C1'] [{'concept': 'aircraft class'}, 'item operated', 'AB 212'] [{'concept': 'aircraft class'}, 'item operated', 'SA 316B Alouette III']
SELECT DISTINCT ?u WHERE { VALUES ( ?o ) { ( resource:SA_316B_Alouette_III ) ( resource:AB_212 ) ( resource:Hercules_C1 ) } . ?u property:item_operated ?o . ?u rdf:type ontology:aircraft_class }
[]
aircraft class
Q17501870 Q17538779 Q17501988
SYSTEM
Austrian Bell 212 fleet, Bahrain Bell 212 fleet, SA 316 in Austrian service
Q17501855 Q17501870 Q17538779 Q17501988
(c(Q1875621),P121,Q15411573) (c(Q1875621),P121,Q17501886) (c(Q1875621),P121,Q17501970)
action filter_type
action find_reverse
entity prev_answer
relation P121
type Q1875621
[ANSWERS] manage those products
[{'concept': 'Q1875621'}, 'P121', 'Q15411573'] [{'concept': 'Q1875621'}, 'P121', 'Q17501886'] [{'concept': 'Q1875621'}, 'P121', 'Q17501970']
SELECT DISTINCT ?u WHERE { VALUES ( ?o ) { ( resource:Q17501970 ) ( resource:Q17501886 ) ( resource:Q15411573 ) } . ?u property:P121 ?o . ?u rdf:type ontology:Q1875621 }
C-130K in Austrian service Austrian Bell 212 fleet Bahrain Bell 212 fleet SA 316 in Austrian service
Austrian Bell 212 fleet, Bahrain Bell 212 fleet and SA 316 in Austrian service manage those products
Austrian Bell 212 fleet Bahrain Bell 212 fleet SA 316 in Austrian service
action filter_type
action find_reverse
entity prev_answer
relation item operated
type aircraft class
[{'concept': 'aircraft class'}, 'item operated', 'Hercules C1'] [{'concept': 'aircraft class'}, 'item operated', 'AB 212'] [{'concept': 'aircraft class'}, 'item operated', 'SA 316B Alouette III']
SELECT DISTINCT ?u WHERE { VALUES ( ?o ) { ( resource:SA_316B_Alouette_III ) ( resource:AB_212 ) ( resource:Hercules_C1 ) } . ?u property:item_operated ?o . ?u rdf:type ontology:aircraft_class }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q17501870 Q17538779 Q17501988
P121
Q3084961
USER
Which product linings are operated by Austrian Bell 212 fleet, Bahrain Bell 212 fleet and SA 316 in Austrian service ?
(Q17501870,P121,c(Q3084961)) (Q17538779,P121,c(Q3084961)) (Q17501988,P121,c(Q3084961))
action union
action filter_type
action find
entity Q17501870
relation P121
type Q3084961
action filter_type
action find
entity Q17538779
relation P121
type Q3084961
action filter_type
action find
entity Q17501988
relation P121
type Q3084961
['Q17501870', 'P121', {'concept': 'Q3084961'}] ['Q17538779', 'P121', {'concept': 'Q3084961'}] ['Q17501988', 'P121', {'concept': 'Q3084961'}]
SELECT DISTINCT ?i WHERE { { resource:Q17538779 property:P121 ?i . ?i rdf:type ontology:Q3084961 } UNION { resource:Q17501870 property:P121 ?i . ?i rdf:type ontology:Q3084961 } }
Austrian Bell 212 fleet Bahrain Bell 212 fleet SA 316 in Austrian service
action union
action filter_type
action find
entity Austrian Bell 212 fleet
relation item operated
type product lining
action filter_type
action find
entity Bahrain Bell 212 fleet
relation item operated
type product lining
action filter_type
action find
entity SA 316 in Austrian service
relation item operated
type product lining
['Austrian Bell 212 fleet', 'item operated', {'concept': 'product lining'}] ['Bahrain Bell 212 fleet', 'item operated', {'concept': 'product lining'}] ['SA 316 in Austrian service', 'item operated', {'concept': 'product lining'}]
SELECT DISTINCT ?i WHERE { { resource:Bahrain_Bell_212_fleet property:item_operated ?i . ?i rdf:type ontology:product_lining } UNION { resource:Austrian_Bell_212_fleet property:item_operated ?i . ?i rdf:type ontology:product_lining } }
[]
product lining
Q698242 Q698242 Q17438173
SYSTEM
SA 316 Alouette III for 3rd, Bell 212 for 1st, 2nd
Q698242 Q698242 Q17438173
(Q17501870,P121,c(Q3084961)) (Q17538779,P121,c(Q3084961)) (Q17501988,P121,c(Q3084961))
action union
action filter_type
action find
entity Q17501870
relation P121
type Q3084961
action filter_type
action find
entity Q17538779
relation P121
type Q3084961
action filter_type
action find
entity Q17501988
relation P121
type Q3084961
[ANSWERS]
['Q17501870', 'P121', {'concept': 'Q3084961'}] ['Q17538779', 'P121', {'concept': 'Q3084961'}] ['Q17501988', 'P121', {'concept': 'Q3084961'}]
SELECT DISTINCT ?i WHERE { { resource:Q17538779 property:P121 ?i . ?i rdf:type ontology:Q3084961 } UNION { resource:Q17501870 property:P121 ?i . ?i rdf:type ontology:Q3084961 } }
Bell 212 Bell 212 SA 316 Alouette III
Bell 212, Bell 212 and SA 316 Alouette III are operated by Austrian Bell 212 fleet, Bahrain Bell 212 fleet and SA 316 in Austrian service
Bell 212 Bell 212 SA 316 Alouette III
action union
action filter_type
action find
entity Austrian Bell 212 fleet
relation item operated
type product lining
action filter_type
action find
entity Bahrain Bell 212 fleet
relation item operated
type product lining
action filter_type
action find
entity SA 316 in Austrian service
relation item operated
type product lining
['Austrian Bell 212 fleet', 'item operated', {'concept': 'product lining'}] ['Bahrain Bell 212 fleet', 'item operated', {'concept': 'product lining'}] ['SA 316 in Austrian service', 'item operated', {'concept': 'product lining'}]
SELECT DISTINCT ?i WHERE { { resource:Bahrain_Bell_212_fleet property:item_operated ?i . ?i rdf:type ontology:product_lining } UNION { resource:Austrian_Bell_212_fleet property:item_operated ?i . ?i rdf:type ontology:product_lining } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q698242
P361
Q1875621
USER
Which aircraft class is that product lining a component of ?
(Q698242,P361,c(Q1875621))
action filter_type
action find
entity Q698242
relation P361
type Q1875621
['Q698242', 'P361', {'concept': 'Q1875621'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q1875621 . resource:Q698242 property:P361 ?s }
Bell 212
action filter_type
action find
entity Bell 212
relation part of
type aircraft class
['Bell 212', 'part of', {'concept': 'aircraft class'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:aircraft_class . resource:Bell_212 property:part_of ?s }
[]
aircraft class
Clarification for simple ques.
Q698242
SYSTEM
Did you mean Bell 212 ?
Q698242 Q698242 Q17438173
(Q698242,P361,c(Q1875621)) (Q698242,P361,c(Q1875621)) (Q17438173,P361,c(Q1875621))
[ANSWER]
['Q698242', 'P361', {'concept': 'Q1875621'}] ['Q698242', 'P361', {'concept': 'Q1875621'}] ['Q17438173', 'P361', {'concept': 'Q1875621'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q1875621 . resource:Q698242 property:P361 ?s }
Bell 212 Bell 212 SA 316 Alouette III
Did you mean Bell 212 ?
Bell 212
['Bell 212', 'part of', {'concept': 'aircraft class'}] ['Bell 212', 'part of', {'concept': 'aircraft class'}] ['SA 316 Alouette III', 'part of', {'concept': 'aircraft class'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:aircraft_class . resource:Bell_212 property:part_of ?s }
[]
Simple Question (Coreferenced)
USER
Yes
(Q698242,P361,c(Q1875621))
['Q698242', 'P361', {'concept': 'Q1875621'}]
['Bell 212', 'part of', {'concept': 'aircraft class'}]
[]
Q24206914
SYSTEM
Bell 212 fleet
Q24206914
(Q698242,P361,c(Q1875621))
action filter_type
action find
entity Q698242
relation P361
type Q1875621
[ANSWER] is that product lining a component of
['Q698242', 'P361', {'concept': 'Q1875621'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q1875621 . resource:Q698242 property:P361 ?s }
Bell 212 fleet
Bell 212 fleet is that product lining a component of
Bell 212 fleet
action filter_type
action find
entity Bell 212
relation part of
type aircraft class
['Bell 212', 'part of', {'concept': 'aircraft class'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:aircraft_class . resource:Bell_212 property:part_of ?s }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P520
Q81103 Q728 Q1875621
USER
Which aircraft classes have max number of cannons and weapons as an instrument for fighting ?
(c(Q1875621),P520,c(Q81103)|c(Q728))
action argmax
action union
action find_tuple_counts
relation P520
type Q1875621
type Q81103
action find_tuple_counts
relation P520
type Q1875621
type Q728
[{'concept': 'Q1875621'}, 'P520', [{'concept': 'Q81103'}, {'concept': 'Q728'}]]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?g ) { SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) ?w WHERE { ?l rdf:type ?j . VALUES ( ?j ) { ( ontology:Q81103 ) ( ontology:Q728 ) } } GROUP BY ?w } } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?y ) ?z WHERE { { ?z property:P520 ?v . ?z rdf:type ontology:Q1875621 . ?v rdf:type ontology:Q728 } UNION { ?z property:P520 ?v . ?z rdf:type ontology:Q1875621 . ?v rdf:type ontology:Q81103 } } GROUP BY ?z } . FILTER ( ?y = ?g ) }
action argmax
action union
action find_tuple_counts
relation armament
type aircraft class
type cannon
action find_tuple_counts
relation armament
type aircraft class
type weapon
[{'concept': 'aircraft class'}, 'armament', [{'concept': 'cannon'}, {'concept': 'weapon'}]]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?g ) { SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) ?w WHERE { ?l rdf:type ?j . VALUES ( ?j ) { ( ontology:cannon ) ( ontology:weapon ) } } GROUP BY ?w } } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?y ) ?z WHERE { { ?z property:armament ?v . ?z rdf:type ontology:aircraft_class . ?v rdf:type ontology:weapon } UNION { ?z property:armament ?v . ?z rdf:type ontology:aircraft_class . ?v rdf:type ontology:cannon } } GROUP BY ?z } . FILTER ( ?y = ?g ) }
[]
cannon weapon aircraft class
Q676997
SYSTEM
Beriev A-40 Albatros
Q676997
(c(Q1875621),P520,c(Q81103)|c(Q728))
action argmax
action union
action find_tuple_counts
relation P520
type Q1875621
type Q81103
action find_tuple_counts
relation P520
type Q1875621
type Q728
[ANSWER] have max number of cannons and weapons as an instrument for fighting
[{'concept': 'Q1875621'}, 'P520', [{'concept': 'Q81103'}, {'concept': 'Q728'}]]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?g ) { SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) ?w WHERE { ?l rdf:type ?j . VALUES ( ?j ) { ( ontology:Q81103 ) ( ontology:Q728 ) } } GROUP BY ?w } } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?y ) ?z WHERE { { ?z property:P520 ?v . ?z rdf:type ontology:Q1875621 . ?v rdf:type ontology:Q728 } UNION { ?z property:P520 ?v . ?z rdf:type ontology:Q1875621 . ?v rdf:type ontology:Q81103 } } GROUP BY ?z } . FILTER ( ?y = ?g ) }
Beriev A-40 Albatros
Beriev A-40 Albatros have max number of cannons and weapons as an instrument for fighting
Beriev A-40 Albatros
action argmax
action union
action find_tuple_counts
relation armament
type aircraft class
type cannon
action find_tuple_counts
relation armament
type aircraft class
type weapon
[{'concept': 'aircraft class'}, 'armament', [{'concept': 'cannon'}, {'concept': 'weapon'}]]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MAX ( ?b ) AS ?g ) { SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) ?w WHERE { ?l rdf:type ?j . VALUES ( ?j ) { ( ontology:cannon ) ( ontology:weapon ) } } GROUP BY ?w } } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?y ) ?z WHERE { { ?z property:armament ?v . ?z rdf:type ontology:aircraft_class . ?v rdf:type ontology:weapon } UNION { ?z property:armament ?v . ?z rdf:type ontology:aircraft_class . ?v rdf:type ontology:cannon } } GROUP BY ?z } . FILTER ( ?y = ?g ) }
[]