Simple Question (Direct)
Simple Question
Q16091202
P1303
Q34379
USER
Which musical instrument can Stuart Hamilton perform with ?
(Q16091202,P1303,c(Q34379))
action filter_type
action find
entity Q16091202
relation P1303
type Q34379
['Q16091202', 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?l WHERE { resource:Q16091202 property:P1303 ?l . ?l rdf:type ontology:Q34379 }
Stuart Hamilton
action filter_type
action find
entity Stuart Hamilton
relation instrument
type musical instrument
['Stuart Hamilton', 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?l WHERE { resource:Stuart_Hamilton property:instrument ?l . ?l rdf:type ontology:musical_instrument }
[]
musical instrument
Q5994
SYSTEM
piano
Q5994
(Q16091202,P1303,c(Q34379))
action filter_type
action find
entity Q16091202
relation P1303
type Q34379
Stuart Hamilton can perform [ANSWER]
['Q16091202', 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?l WHERE { resource:Q16091202 property:P1303 ?l . ?l rdf:type ontology:Q34379 }
piano
Stuart Hamilton can perform piano
piano
action filter_type
action find
entity Stuart Hamilton
relation instrument
type musical instrument
['Stuart Hamilton', 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?l WHERE { resource:Stuart_Hamilton property:instrument ?l . ?l rdf:type ontology:musical_instrument }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16091202
P27
Q1048835
USER
Which political territory is Stuart Hamilton a civilian of ?
(Q16091202,P27,c(Q1048835))
action filter_type
action find
entity Q16091202
relation P27
type Q1048835
['Q16091202', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q1048835 . resource:Q16091202 property:P27 ?o }
Stuart Hamilton
action filter_type
action find
entity Stuart Hamilton
relation country of citizenship
type political territorial entity
['Stuart Hamilton', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:political_territorial_entity . resource:Stuart_Hamilton property:country_of_citizenship ?o }
[]
political territorial entity
Q16
SYSTEM
Canada
Q16
(Q16091202,P27,c(Q1048835))
action filter_type
action find
entity Q16091202
relation P27
type Q1048835
The [ANSWER] is Stuart Hamilton a civilian of
['Q16091202', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q1048835 . resource:Q16091202 property:P27 ?o }
Canada
The Canada is Stuart Hamilton a civilian of
Canada
action filter_type
action find
entity Stuart Hamilton
relation country of citizenship
type political territorial entity
['Stuart Hamilton', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:political_territorial_entity . resource:Stuart_Hamilton property:country_of_citizenship ?o }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16
P710
Q180684
USER
What event did that political territory particiate in ?
(c(Q180684),P710,Q16)
action filter_type
action find_reverse
entity Q16
relation P710
type Q180684
[{'concept': 'Q180684'}, 'P710', 'Q16']
SELECT DISTINCT ?h WHERE { ?h property:P710 resource:Q16 . ?h rdf:type ontology:Q180684 }
Canada
action filter_type
action find_reverse
entity Canada
relation participant
type conflict
[{'concept': 'conflict'}, 'participant', 'Canada']
SELECT DISTINCT ?h WHERE { ?h property:participant resource:Canada . ?h rdf:type ontology:conflict }
[]
conflict
Q911972
SYSTEM
Dunkirk evacuation
Q911972
(c(Q180684),P710,Q16)
action filter_type
action find_reverse
entity Q16
relation P710
type Q180684
That political territory particiated in [ANSWER]
[{'concept': 'Q180684'}, 'P710', 'Q16']
SELECT DISTINCT ?h WHERE { ?h property:P710 resource:Q16 . ?h rdf:type ontology:Q180684 }
Dunkirk evacuation
That political territory particiated in Dunkirk evacuation
Dunkirk evacuation
action filter_type
action find_reverse
entity Canada
relation participant
type conflict
[{'concept': 'conflict'}, 'participant', 'Canada']
SELECT DISTINCT ?h WHERE { ?h property:participant resource:Canada . ?h rdf:type ontology:conflict }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q911972
P607
Q502895
USER
Which people did that conflict take part in ?
(c(Q502895),P607,Q911972)
action filter_type
action find_reverse
entity Q911972
relation P607
type Q502895
[{'concept': 'Q502895'}, 'P607', 'Q911972']
SELECT DISTINCT ?d WHERE { ?d property:P607 resource:Q911972 . ?d rdf:type ontology:Q502895 }
Dunkirk evacuation
action filter_type
action find_reverse
entity Dunkirk evacuation
relation conflict
type common name
[{'concept': 'common name'}, 'conflict', 'Dunkirk evacuation']
SELECT DISTINCT ?d WHERE { ?d property:conflict resource:Dunkirk_evacuation . ?d rdf:type ontology:common_name }
[]
common name
Q16013715 Q7350405 Q5668334
SYSTEM
John O'Brien, Robert Timbrell, Harry DeWolf
Q16013715 Q7350405 Q5668334
(c(Q502895),P607,Q911972)
action filter_type
action find_reverse
entity Q911972
relation P607
type Q502895
Part that conflict took place [ANSWERS]
[{'concept': 'Q502895'}, 'P607', 'Q911972']
SELECT DISTINCT ?d WHERE { ?d property:P607 resource:Q911972 . ?d rdf:type ontology:Q502895 }
John O'Brien Robert Timbrell Harry DeWolf
Part that conflict took place John O'Brien, Robert Timbrell and Harry DeWolf
John O'Brien Robert Timbrell Harry DeWolf
action filter_type
action find_reverse
entity Dunkirk evacuation
relation conflict
type common name
[{'concept': 'common name'}, 'conflict', 'Dunkirk evacuation']
SELECT DISTINCT ?d WHERE { ?d property:conflict resource:Dunkirk_evacuation . ?d rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q911972
P17
Q15617994
USER
Which administrative territory is that conflict present in ?
(Q16013715,P17,c(Q15617994)) (Q7350405,P17,c(Q15617994)) (Q5668334,P17,c(Q15617994))
action filter_type
action find
entity Q911972
relation P17
type Q15617994
['Q16013715', 'P17', {'concept': 'Q15617994'}] ['Q7350405', 'P17', {'concept': 'Q15617994'}] ['Q5668334', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q911972 property:P17 ?a . ?a rdf:type ontology:Q15617994 }
Dunkirk evacuation
action filter_type
action find
entity Dunkirk evacuation
relation country
type designation for an administrative territorial entity
["John O'Brien", 'country', {'concept': 'designation for an administrative territorial entity'}] ['Robert Timbrell', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Harry DeWolf', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Dunkirk_evacuation property:country ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q16013715,P17,c(Q15617994)) (Q7350405,P17,c(Q15617994)) (Q5668334,P17,c(Q15617994))
action filter_type
action find
entity Q911972
relation P17
type Q15617994
That conflict is [ANSWER]
['Q16013715', 'P17', {'concept': 'Q15617994'}] ['Q7350405', 'P17', {'concept': 'Q15617994'}] ['Q5668334', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { resource:Q911972 property:P17 ?a . ?a rdf:type ontology:Q15617994 }
France
That conflict is France
France
action filter_type
action find
entity Dunkirk evacuation
relation country
type designation for an administrative territorial entity
["John O'Brien", 'country', {'concept': 'designation for an administrative territorial entity'}] ['Robert Timbrell', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Harry DeWolf', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Dunkirk_evacuation property:country ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q17
P530
Q15617994 Q15617994
USER
Which administrative territories holds diplomatic relationship with around the same number of administrative territories as Japan ?
(c(Q15617994),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q17
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?u ) AS ?x ) WHERE { ?w property:P530 ?u . ?u rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q15617994 } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?k ) WHERE { ?m rdf:type ontology:Q15617994 . resource:Q17 property:P530 ?m } } . FILTER ( ?x = ?k ) }
Japan
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Japan
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?u ) AS ?x ) WHERE { ?w property:diplomatic_relation ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?k ) WHERE { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Japan property:diplomatic_relation ?m } } . FILTER ( ?x = ?k ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q142 Q953 Q148
SYSTEM
France, Zambia, People's Republic of China
Q805 Q668 Q414 Q142 Q145 Q148 Q37 Q711 Q252 Q399 Q403 Q258 Q43 Q41 Q796 Q794 Q889 Q884 Q881 Q822 Q241 Q32 Q31 Q34 Q423 Q27 Q843 Q227 Q222 Q347 Q17 Q1033 Q213 Q916 Q79 Q1016 Q1011 Q953
(c(Q15617994),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q17
relation P530
type Q15617994
[ANSWERS] hold diplomatic relationship with around the same number of administrative territories as Japan
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?u ) AS ?x ) WHERE { ?w property:P530 ?u . ?u rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q15617994 } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?k ) WHERE { ?m rdf:type ontology:Q15617994 . resource:Q17 property:P530 ?m } } . FILTER ( ?x = ?k ) }
Yemen India Argentina France United Kingdom People's Republic of China Lithuania Mongolia Indonesia Armenia Serbia South Africa Turkey Greece Iraq Iran Afghanistan South Korea Vietnam Lebanon Cuba Luxembourg Belgium Sweden North Korea Ireland Pakistan Azerbaijan Albania Liechtenstein Japan Nigeria Czech Republic Angola Egypt Libya Cape Verde Zambia
France, Zambia and People's Republic of China hold diplomatic relationship with around the same number of administrative territories as Japan
France Zambia People's Republic of China
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Japan
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?u ) AS ?x ) WHERE { ?w property:diplomatic_relation ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?k ) WHERE { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Japan property:diplomatic_relation ?m } } . FILTER ( ?x = ?k ) }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q142 Q953 Q148
P163
Q14660
USER
Which flags are associated with those administrative territories ?
(Q142,P163,c(Q14660)) (Q953,P163,c(Q14660)) (Q148,P163,c(Q14660))
action filter_type
action find
entity prev_answer
relation P163
type Q14660
['Q142', 'P163', {'concept': 'Q14660'}] ['Q953', 'P163', {'concept': 'Q14660'}] ['Q148', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q14660 . ?l property:P163 ?q . VALUES ( ?l ) { ( resource:Q805 ) ( resource:Q668 ) ( resource:Q414 ) } }
France Zambia People's Republic of China
action filter_type
action find
entity prev_answer
relation flag
type flag
['France', 'flag', {'concept': 'flag'}] ['Zambia', 'flag', {'concept': 'flag'}] ["People's Republic of China", 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:flag . ?l property:flag ?q . VALUES ( ?l ) { ( resource:Yemen ) ( resource:India ) ( resource:Argentina ) } }
[]
flag
Q43192 Q170814 Q131147
SYSTEM
Flag of France, Flag of Zambia, Flag of the People's Republic of China
Q43192 Q170814 Q131147
(Q142,P163,c(Q14660)) (Q953,P163,c(Q14660)) (Q148,P163,c(Q14660))
action filter_type
action find
entity prev_answer
relation P163
type Q14660
[ANSWERS] are associated with those administrative territories
['Q142', 'P163', {'concept': 'Q14660'}] ['Q953', 'P163', {'concept': 'Q14660'}] ['Q148', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q14660 . ?l property:P163 ?q . VALUES ( ?l ) { ( resource:Q805 ) ( resource:Q668 ) ( resource:Q414 ) } }
Flag of France Flag of Zambia Flag of the People's Republic of China
Flag of France, Flag of Zambia and Flag of the People's Republic of China are associated with those administrative territories
Flag of France Flag of Zambia Flag of the People's Republic of China
action filter_type
action find
entity prev_answer
relation flag
type flag
['France', 'flag', {'concept': 'flag'}] ['Zambia', 'flag', {'concept': 'flag'}] ["People's Republic of China", 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:flag . ?l property:flag ?q . VALUES ( ?l ) { ( resource:Yemen ) ( resource:India ) ( resource:Argentina ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q170814
P1001
Q15617994
USER
Which administrative territory is linked to that flag ?
(Q170814,P1001,c(Q15617994))
action filter_type
action find
entity Q170814
relation P1001
type Q15617994
['Q170814', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q170814 property:P1001 ?n . ?n rdf:type ontology:Q15617994 }
Flag of Zambia
action filter_type
action find
entity Flag of Zambia
relation applies to jurisdiction
type designation for an administrative territorial entity
['Flag of Zambia', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Flag_of_Zambia property:applies_to_jurisdiction ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q131147
SYSTEM
Did you mean Flag of the People's Republic of China ?
Q43192 Q170814 Q131147
(Q43192,P1001,c(Q15617994)) (Q170814,P1001,c(Q15617994)) (Q131147,P1001,c(Q15617994))
[ANSWER]
['Q43192', 'P1001', {'concept': 'Q15617994'}] ['Q170814', 'P1001', {'concept': 'Q15617994'}] ['Q131147', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q170814 property:P1001 ?n . ?n rdf:type ontology:Q15617994 }
Flag of France Flag of Zambia Flag of the People's Republic of China
Did you mean Flag of the People's Republic of China ?
Flag of the People's Republic of China
['Flag of France', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}] ['Flag of Zambia', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}] ["Flag of the People's Republic of China", 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Flag_of_Zambia property:applies_to_jurisdiction ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Flag of Zambia. Could you tell me the answer for that?
(Q170814,P1001,c(Q15617994))
Q170814
['Q170814', 'P1001', {'concept': 'Q15617994'}]
['Flag of Zambia', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
[]
Q953
SYSTEM
Zambia
Q953
(Q170814,P1001,c(Q15617994))
action filter_type
action find
entity Q170814
relation P1001
type Q15617994
To [ANSWER] is linked to that flag
['Q170814', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q170814 property:P1001 ?n . ?n rdf:type ontology:Q15617994 }
Zambia
To Zambia is linked to that flag
Zambia
action filter_type
action find
entity Flag of Zambia
relation applies to jurisdiction
type designation for an administrative territorial entity
['Flag of Zambia', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Flag_of_Zambia property:applies_to_jurisdiction ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P495
Q15617994 Q2031291
USER
How many administrative territories did more number of releases originate than that administrative territory ?
(c(Q2031291),P495,c(Q15617994))
action count
action greater
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2031291
action count
action filter_type
action find
entity Q953
relation P495
type Q15617994
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?e ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?r ) AS ?s ) WHERE { ?r property:P495 ?w . ?w rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q2031291 } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) WHERE { ?j rdf:type ontology:Q15617994 . resource:Q953 property:P495 ?j } } . FILTER ( ?s > ?h ) }
action count
action greater
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type release
action count
action filter_type
action find
entity Zambia
relation country of origin
type designation for an administrative territorial entity
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?e ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?r ) AS ?s ) WHERE { ?r property:country_of_origin ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:release } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) WHERE { ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Zambia property:country_of_origin ?j } } . FILTER ( ?s > ?h ) }
[]
designation for an administrative territorial entity release
SYSTEM
35
Q801 Q668 Q414 Q142 Q55 Q145 Q148 Q712 Q837 Q252 Q258 Q159 Q43 Q41 Q155 Q884 Q826 Q242 Q33 Q31 Q30 Q36 Q34 Q38 Q20 Q27 Q843 Q17 Q902 Q191 Q298 Q213 Q215 Q79 Q29
(c(Q2031291),P495,c(Q15617994))
action count
action greater
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2031291
action count
action filter_type
action find
entity Q953
relation P495
type Q15617994
[ANSWER]
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?e ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?r ) AS ?s ) WHERE { ?r property:P495 ?w . ?w rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q2031291 } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) WHERE { ?j rdf:type ontology:Q15617994 . resource:Q953 property:P495 ?j } } . FILTER ( ?s > ?h ) }
Israel India Argentina France Netherlands United Kingdom People's Republic of China Fiji Nepal Indonesia South Africa Russia Turkey Greece Brazil South Korea Maldives Belize Finland Belgium United States of America Poland Sweden Italy Norway Ireland Pakistan Japan Bangladesh Estonia Chile Czech Republic Slovenia Egypt Spain
35
action count
action greater
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type release
action count
action filter_type
action find
entity Zambia
relation country of origin
type designation for an administrative territorial entity
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?e ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?r ) AS ?s ) WHERE { ?r property:country_of_origin ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:release } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) WHERE { ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Zambia property:country_of_origin ?j } } . FILTER ( ?s > ?h ) }
[]