Simple Question (Direct)
Simple Question
Q5542564
P21
Q290
USER
Which sex does George Monckton-Arundell, 8th Viscount Galway belong to ?
(Q5542564,P21,c(Q290))
action filter_type
action find
entity Q5542564
relation P21
type Q290
['Q5542564', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?g WHERE { resource:Q5542564 property:P21 ?g . ?g rdf:type ontology:Q290 }
George Monckton-Arundell, 8th Viscount Galway
action filter_type
action find
entity George Monckton-Arundell, 8th Viscount Galway
relation gender
type sex
['George Monckton-Arundell, 8th Viscount Galway', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?g WHERE { resource:George_Monckton-Arundell,_8th_Viscount_Galway property:gender ?g . ?g rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q5542564,P21,c(Q290))
action filter_type
action find
entity Q5542564
relation P21
type Q290
George Monckton-Arundell , 8th Viscount Galway belongs to the [ANSWER]
['Q5542564', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?g WHERE { resource:Q5542564 property:P21 ?g . ?g rdf:type ontology:Q290 }
male
George Monckton-Arundell , 8th Viscount Galway belongs to the male
male
action filter_type
action find
entity George Monckton-Arundell, 8th Viscount Galway
relation gender
type sex
['George Monckton-Arundell, 8th Viscount Galway', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?g WHERE { resource:George_Monckton-Arundell,_8th_Viscount_Galway property:gender ?g . ?g rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2926747 Q5542564
P27
Q15617994
USER
Which administrative territories are the countries of citizenship of George Monckton-Arundell, 8th Viscount Galway or Bruno Druart ?
OR((Q5542564,P27,c(Q15617994)), (Q2926747,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q5542564
relation P27
action find
entity Q2926747
relation P27
type Q15617994
{'OR': [['Q5542564', 'P27', {'concept': 'Q15617994'}], ['Q2926747', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { VALUES ( ?s ) { ( resource:Q5542564 ) ( resource:Q2926747 ) } . ?s property:P27 ?b } . ?b rdf:type ontology:Q15617994 }
Bruno Druart George Monckton-Arundell, 8th Viscount Galway
action filter_type
action union
action find
entity George Monckton-Arundell, 8th Viscount Galway
relation country of citizenship
action find
entity Bruno Druart
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['George Monckton-Arundell, 8th Viscount Galway', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Bruno Druart', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { VALUES ( ?s ) { ( resource:George_Monckton-Arundell,_8th_Viscount_Galway ) ( resource:Bruno_Druart ) } . ?s property:country_of_citizenship ?b } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q145
SYSTEM
France, United Kingdom
Q142 Q145
OR((Q5542564,P27,c(Q15617994)), (Q2926747,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q5542564
relation P27
action find
entity Q2926747
relation P27
type Q15617994
[ANSWERS] are the countries of citizenship of George Monckton-Arundell, 8th Viscount Galway or Bruno Druart
{'OR': [['Q5542564', 'P27', {'concept': 'Q15617994'}], ['Q2926747', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { VALUES ( ?s ) { ( resource:Q5542564 ) ( resource:Q2926747 ) } . ?s property:P27 ?b } . ?b rdf:type ontology:Q15617994 }
France United Kingdom
France and United Kingdom are the countries of citizenship of George Monckton-Arundell, 8th Viscount Galway or Bruno Druart
France United Kingdom
action filter_type
action union
action find
entity George Monckton-Arundell, 8th Viscount Galway
relation country of citizenship
action find
entity Bruno Druart
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['George Monckton-Arundell, 8th Viscount Galway', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Bruno Druart', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { VALUES ( ?s ) { ( resource:George_Monckton-Arundell,_8th_Viscount_Galway ) ( resource:Bruno_Druart ) } . ?s property:country_of_citizenship ?b } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q142
P710
Q1190554
USER
What event were that administrative territory a participant of ?
(c(Q1190554),P710,Q142)
action filter_type
action find_reverse
entity Q142
relation P710
type Q1190554
[{'concept': 'Q1190554'}, 'P710', 'Q142']
SELECT DISTINCT ?t WHERE { ?t property:P710 resource:Q142 . ?t rdf:type ontology:Q1190554 }
France
action filter_type
action find_reverse
entity France
relation participant
type event
[{'concept': 'event'}, 'participant', 'France']
SELECT DISTINCT ?t WHERE { ?t property:participant resource:France . ?t rdf:type ontology:event }
[]
event
Clarification for simple ques.
Q142
SYSTEM
Did you mean France ?
Q142 Q145
(c(Q1190554),P710,Q142) (c(Q1190554),P710,Q145)
[ANSWER]
[{'concept': 'Q1190554'}, 'P710', 'Q142'] [{'concept': 'Q1190554'}, 'P710', 'Q145']
SELECT DISTINCT ?t WHERE { ?t property:P710 resource:Q142 . ?t rdf:type ontology:Q1190554 }
France United Kingdom
Did you mean France ?
France
[{'concept': 'event'}, 'participant', 'France'] [{'concept': 'event'}, 'participant', 'United Kingdom']
SELECT DISTINCT ?t WHERE { ?t property:participant resource:France . ?t rdf:type ontology:event }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q1190554),P710,Q142)
[{'concept': 'Q1190554'}, 'P710', 'Q142']
[{'concept': 'event'}, 'participant', 'France']
[]
Q838704 Q13435464 Q3486058
SYSTEM
Battle of Durazzo, Invasion of Luxembourg, Battle of Crête-à-Pierrot
Q838704 Q300738 Q13435464 Q3486058
(c(Q1190554),P710,Q142)
action filter_type
action find_reverse
entity Q142
relation P710
type Q1190554
That administrative territory were the [ANSWERS]
[{'concept': 'Q1190554'}, 'P710', 'Q142']
SELECT DISTINCT ?t WHERE { ?t property:P710 resource:Q142 . ?t rdf:type ontology:Q1190554 }
Battle of Durazzo Congress of Aix-la-Chapelle (1818) Invasion of Luxembourg Battle of Crête-à-Pierrot
That administrative territory were the Battle of Durazzo, Invasion of Luxembourg and Battle of Crête-à-Pierrot
Battle of Durazzo Invasion of Luxembourg Battle of Crête-à-Pierrot
action filter_type
action find_reverse
entity France
relation participant
type event
[{'concept': 'event'}, 'participant', 'France']
SELECT DISTINCT ?t WHERE { ?t property:participant resource:France . ?t rdf:type ontology:event }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P710
Q7275 Q15617994
USER
How many states or administrative territories were the participants of that event ?
(Q13435464,P710,c(Q7275)) (Q13435464,P710,c(Q15617994)) (Q838704,P710,c(Q7275)) (Q838704,P710,c(Q15617994)) (Q13435464,P710,c(Q7275)) (Q13435464,P710,c(Q15617994)) (Q3486058,P710,c(Q7275)) (Q3486058,P710,c(Q15617994))
['Q13435464', 'P710', {'concept': 'Q7275'}] ['Q13435464', 'P710', {'concept': 'Q15617994'}] ['Q838704', 'P710', {'concept': 'Q7275'}] ['Q838704', 'P710', {'concept': 'Q15617994'}] ['Q13435464', 'P710', {'concept': 'Q7275'}] ['Q13435464', 'P710', {'concept': 'Q15617994'}] ['Q3486058', 'P710', {'concept': 'Q7275'}] ['Q3486058', 'P710', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q13435464 property:P710 ?z } UNION { resource:Q13435464 property:P710 ?y } UNION { resource:Q3636419 property:P710 ?z } UNION { resource:Q3636419 property:P710 ?y } UNION { resource:Q13435464 property:P710 ?z } UNION { resource:Q13435464 property:P710 ?y } UNION { resource:Q3486058 property:P710 ?z } UNION { resource:Q3486058 property:P710 ?y } } . ?z rdf:type ontology:Q7275 . ?y rdf:type ontology:Q15617994 }
['Invasion of Luxembourg', 'participant', {'concept': 'state'}] ['Invasion of Luxembourg', 'participant', {'concept': 'designation for an administrative territorial entity'}] ['Battle of Durazzo', 'participant', {'concept': 'state'}] ['Battle of Durazzo', 'participant', {'concept': 'designation for an administrative territorial entity'}] ['Invasion of Luxembourg', 'participant', {'concept': 'state'}] ['Invasion of Luxembourg', 'participant', {'concept': 'designation for an administrative territorial entity'}] ['Battle of Crête-à-Pierrot', 'participant', {'concept': 'state'}] ['Battle of Crête-à-Pierrot', 'participant', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Invasion_of_Luxembourg property:participant ?z } UNION { resource:Invasion_of_Luxembourg property:participant ?y } UNION { resource:Battle_of_Durazzo property:participant ?z } UNION { resource:Battle_of_Durazzo property:participant ?y } UNION { resource:Invasion_of_Luxembourg property:participant ?z } UNION { resource:Invasion_of_Luxembourg property:participant ?y } UNION { resource:Battle_of_Crête-à-Pierrot property:participant ?z } UNION { resource:Battle_of_Crête-à-Pierrot property:participant ?y } } . ?z rdf:type ontology:state . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
state designation for an administrative territorial entity
Quantitative|Count|Mult. entity type|Clarification
Q838704
SYSTEM
Did you mean Battle of Durazzo ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q13435464 property:P710 ?z } UNION { resource:Q13435464 property:P710 ?y } UNION { resource:Q3636419 property:P710 ?z } UNION { resource:Q3636419 property:P710 ?y } UNION { resource:Q13435464 property:P710 ?z } UNION { resource:Q13435464 property:P710 ?y } UNION { resource:Q3486058 property:P710 ?z } UNION { resource:Q3486058 property:P710 ?y } } . ?z rdf:type ontology:Q7275 . ?y rdf:type ontology:Q15617994 }
Did you mean Battle of Durazzo ?
Battle of Durazzo
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Invasion_of_Luxembourg property:participant ?z } UNION { resource:Invasion_of_Luxembourg property:participant ?y } UNION { resource:Battle_of_Durazzo property:participant ?z } UNION { resource:Battle_of_Durazzo property:participant ?y } UNION { resource:Invasion_of_Luxembourg property:participant ?z } UNION { resource:Invasion_of_Luxembourg property:participant ?y } UNION { resource:Battle_of_Crête-à-Pierrot property:participant ?z } UNION { resource:Battle_of_Crête-à-Pierrot property:participant ?y } } . ?z rdf:type ontology:state . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Invasion of Luxembourg. Could you tell me the answer for that?
(Q13435464,P710,c(Q7275)) (Q13435464,P710,c(Q15617994)) (Q838704,P710,c(Q7275)) (Q838704,P710,c(Q15617994)) (Q13435464,P710,c(Q7275)) (Q13435464,P710,c(Q15617994)) (Q3486058,P710,c(Q7275)) (Q3486058,P710,c(Q15617994))
Q13435464
['Q13435464', 'P710', {'concept': 'Q7275'}] ['Q13435464', 'P710', {'concept': 'Q15617994'}] ['Q838704', 'P710', {'concept': 'Q7275'}] ['Q838704', 'P710', {'concept': 'Q15617994'}] ['Q13435464', 'P710', {'concept': 'Q7275'}] ['Q13435464', 'P710', {'concept': 'Q15617994'}] ['Q3486058', 'P710', {'concept': 'Q7275'}] ['Q3486058', 'P710', {'concept': 'Q15617994'}]
['Invasion of Luxembourg', 'participant', {'concept': 'state'}] ['Invasion of Luxembourg', 'participant', {'concept': 'designation for an administrative territorial entity'}] ['Battle of Durazzo', 'participant', {'concept': 'state'}] ['Battle of Durazzo', 'participant', {'concept': 'designation for an administrative territorial entity'}] ['Invasion of Luxembourg', 'participant', {'concept': 'state'}] ['Invasion of Luxembourg', 'participant', {'concept': 'designation for an administrative territorial entity'}] ['Battle of Crête-à-Pierrot', 'participant', {'concept': 'state'}] ['Battle of Crête-à-Pierrot', 'participant', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
4
Q142 Q7318 Q145 Q32
(Q13435464,P710,c(Q7275)) (Q13435464,P710,c(Q15617994)) (Q838704,P710,c(Q7275)) (Q838704,P710,c(Q15617994)) (Q13435464,P710,c(Q7275)) (Q13435464,P710,c(Q15617994)) (Q3486058,P710,c(Q7275)) (Q3486058,P710,c(Q15617994))
[ANSWER]
['Q13435464', 'P710', {'concept': 'Q7275'}] ['Q13435464', 'P710', {'concept': 'Q15617994'}] ['Q838704', 'P710', {'concept': 'Q7275'}] ['Q838704', 'P710', {'concept': 'Q15617994'}] ['Q13435464', 'P710', {'concept': 'Q7275'}] ['Q13435464', 'P710', {'concept': 'Q15617994'}] ['Q3486058', 'P710', {'concept': 'Q7275'}] ['Q3486058', 'P710', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q13435464 property:P710 ?z } UNION { resource:Q13435464 property:P710 ?y } UNION { resource:Q3636419 property:P710 ?z } UNION { resource:Q3636419 property:P710 ?y } UNION { resource:Q13435464 property:P710 ?z } UNION { resource:Q13435464 property:P710 ?y } UNION { resource:Q3486058 property:P710 ?z } UNION { resource:Q3486058 property:P710 ?y } } . ?z rdf:type ontology:Q7275 . ?y rdf:type ontology:Q15617994 }
France Nazi Germany United Kingdom Luxembourg
4
['Invasion of Luxembourg', 'participant', {'concept': 'state'}] ['Invasion of Luxembourg', 'participant', {'concept': 'designation for an administrative territorial entity'}] ['Battle of Durazzo', 'participant', {'concept': 'state'}] ['Battle of Durazzo', 'participant', {'concept': 'designation for an administrative territorial entity'}] ['Invasion of Luxembourg', 'participant', {'concept': 'state'}] ['Invasion of Luxembourg', 'participant', {'concept': 'designation for an administrative territorial entity'}] ['Battle of Crête-à-Pierrot', 'participant', {'concept': 'state'}] ['Battle of Crête-à-Pierrot', 'participant', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Invasion_of_Luxembourg property:participant ?z } UNION { resource:Invasion_of_Luxembourg property:participant ?y } UNION { resource:Battle_of_Durazzo property:participant ?z } UNION { resource:Battle_of_Durazzo property:participant ?y } UNION { resource:Invasion_of_Luxembourg property:participant ?z } UNION { resource:Invasion_of_Luxembourg property:participant ?y } UNION { resource:Battle_of_Crête-à-Pierrot property:participant ?z } UNION { resource:Battle_of_Crête-à-Pierrot property:participant ?y } } . ?z rdf:type ontology:state . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P828
Q1190554 Q1190554
USER
Which events are the causes of max number of events ?
(c(Q1190554),P828,Q4373)
action argmax
action find_reverse_tuple_counts
relation P828
type Q1190554
type Q1190554
[{'concept': 'Q1190554'}, 'P828', 'Q4373']
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?p ) { SELECT DISTINCT ?z ( COUNT ( ?t ) AS ?m ) WHERE { ?t property:P828 ?z . ?z rdf:type ontology:Q1190554 . ?t rdf:type ontology:Q1190554 } GROUP BY ?z } } . FILTER ( ?f = ?p ) . { SELECT DISTINCT ?w ( COUNT ( ?j ) AS ?f ) WHERE { ?j property:P828 ?w . ?w rdf:type ontology:Q1190554 . ?j rdf:type ontology:Q1190554 } GROUP BY ?w } }
action argmax
action find_reverse_tuple_counts
relation has cause
type event
type event
[{'concept': 'event'}, 'has cause', 'Battle of White Mountain']
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?p ) { SELECT DISTINCT ?z ( COUNT ( ?t ) AS ?m ) WHERE { ?t property:has_cause ?z . ?z rdf:type ontology:event . ?t rdf:type ontology:event } GROUP BY ?z } } . FILTER ( ?f = ?p ) . { SELECT DISTINCT ?w ( COUNT ( ?j ) AS ?f ) WHERE { ?j property:has_cause ?w . ?w rdf:type ontology:event . ?j rdf:type ontology:event } GROUP BY ?w } }
[]
event event
Q190035
SYSTEM
gravitational wave
Q190035
(c(Q1190554),P828,Q4373)
action argmax
action find_reverse_tuple_counts
relation P828
type Q1190554
type Q1190554
The [ANSWER] is the causes of max number of events
[{'concept': 'Q1190554'}, 'P828', 'Q4373']
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?p ) { SELECT DISTINCT ?z ( COUNT ( ?t ) AS ?m ) WHERE { ?t property:P828 ?z . ?z rdf:type ontology:Q1190554 . ?t rdf:type ontology:Q1190554 } GROUP BY ?z } } . FILTER ( ?f = ?p ) . { SELECT DISTINCT ?w ( COUNT ( ?j ) AS ?f ) WHERE { ?j property:P828 ?w . ?w rdf:type ontology:Q1190554 . ?j rdf:type ontology:Q1190554 } GROUP BY ?w } }
gravitational wave
The gravitational wave is the causes of max number of events
gravitational wave
action argmax
action find_reverse_tuple_counts
relation has cause
type event
type event
[{'concept': 'event'}, 'has cause', 'Battle of White Mountain']
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?p ) { SELECT DISTINCT ?z ( COUNT ( ?t ) AS ?m ) WHERE { ?t property:has_cause ?z . ?z rdf:type ontology:event . ?t rdf:type ontology:event } GROUP BY ?z } } . FILTER ( ?f = ?p ) . { SELECT DISTINCT ?w ( COUNT ( ?j ) AS ?f ) WHERE { ?j property:has_cause ?w . ?w rdf:type ontology:event . ?j rdf:type ontology:event } GROUP BY ?w } }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q190035 Q7182788
P828
Q1190554
USER
Is Philadelphia Pier 34 collapse caused by that one ?
(Q7182788,P828,Q190035)
action is_in
entity Q7182788
action find
entity Q190035
relation P828
['Q7182788', 'P828', 'Q190035']
ASK WHERE { resource:Q190035 property:P828 resource:Q7182788 }
gravitational wave Philadelphia Pier 34 collapse
action is_in
entity Philadelphia Pier 34 collapse
action find
entity gravitational wave
relation has cause
['Philadelphia Pier 34 collapse', 'has cause', 'gravitational wave']
ASK WHERE { resource:gravitational_wave property:has_cause resource:Philadelphia_Pier_34_collapse }
[]
event
SYSTEM
NO
(Q7182788,P828,Q190035)
action is_in
entity Q7182788
action find
entity Q190035
relation P828
[ANSWER]
['Q7182788', 'P828', 'Q190035']
ASK WHERE { resource:Q190035 property:P828 resource:Q7182788 }
No
action is_in
entity Philadelphia Pier 34 collapse
action find
entity gravitational wave
relation has cause
['Philadelphia Pier 34 collapse', 'has cause', 'gravitational wave']
ASK WHERE { resource:gravitational_wave property:has_cause resource:Philadelphia_Pier_34_collapse }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q142
P163
Q14660
USER
Which flag is associated with France ?
(Q142,P163,c(Q14660))
action filter_type
action find
entity Q142
relation P163
type Q14660
['Q142', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?g WHERE { resource:Q142 property:P163 ?g . ?g rdf:type ontology:Q14660 }
France
action filter_type
action find
entity France
relation flag
type flag
['France', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?g WHERE { resource:France property:flag ?g . ?g rdf:type ontology:flag }
[]
flag
Q43192
SYSTEM
Flag of France
Q43192
(Q142,P163,c(Q14660))
action filter_type
action find
entity Q142
relation P163
type Q14660
France [ANSWER] is associated with France
['Q142', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?g WHERE { resource:Q142 property:P163 ?g . ?g rdf:type ontology:Q14660 }
Flag of France
France Flag of France is associated with France
Flag of France
action filter_type
action find
entity France
relation flag
type flag
['France', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?g WHERE { resource:France property:flag ?g . ?g rdf:type ontology:flag }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q17
Q14660
USER
And what about Japan?
(Q17,P163,c(Q14660))
action filter_type
action find
entity Q17
relation P163
type Q14660
['Q17', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?r WHERE { resource:Q17 property:P163 ?r . ?r rdf:type ontology:Q14660 }
Japan
action filter_type
action find
entity Japan
relation flag
type flag
['Japan', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?r WHERE { resource:Japan property:flag ?r . ?r rdf:type ontology:flag }
[]
flag
Q43175
SYSTEM
Flag of Japan
Q43175
(Q17,P163,c(Q14660))
action filter_type
action find
entity Q17
relation P163
type Q14660
[ANSWER]
['Q17', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?r WHERE { resource:Q17 property:P163 ?r . ?r rdf:type ontology:Q14660 }
Flag of Japan
Flag of Japan
action filter_type
action find
entity Japan
relation flag
type flag
['Japan', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?r WHERE { resource:Japan property:flag ?r . ?r rdf:type ontology:flag }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q43192
P180
Q340169
USER
Which media demonstrates Flag of France ?
(c(Q340169),P180,Q43192)
action filter_type
action find_reverse
entity Q43192
relation P180
type Q340169
[{'concept': 'Q340169'}, 'P180', 'Q43192']
SELECT DISTINCT ?l WHERE { ?l property:P180 resource:Q43192 . ?l rdf:type ontology:Q340169 }
Flag of France
action filter_type
action find_reverse
entity Flag of France
relation depicts
type media
[{'concept': 'media'}, 'depicts', 'Flag of France']
SELECT DISTINCT ?l WHERE { ?l property:depicts resource:Flag_of_France . ?l rdf:type ontology:media }
[]
media
Q20668033
SYSTEM
The Last Flag Raising Ceremony: Cession of New Orleans (1803)
Q20668033
(c(Q340169),P180,Q43192)
action filter_type
action find_reverse
entity Q43192
relation P180
type Q340169
[ANSWER] demonstrates Flag of France
[{'concept': 'Q340169'}, 'P180', 'Q43192']
SELECT DISTINCT ?l WHERE { ?l property:P180 resource:Q43192 . ?l rdf:type ontology:Q340169 }
The Last Flag Raising Ceremony: Cession of New Orleans (1803)
The Last Flag Raising Ceremony: Cession of New Orleans (1803) demonstrates Flag of France
The Last Flag Raising Ceremony: Cession of New Orleans (1803)
action filter_type
action find_reverse
entity Flag of France
relation depicts
type media
[{'concept': 'media'}, 'depicts', 'Flag of France']
SELECT DISTINCT ?l WHERE { ?l property:depicts resource:Flag_of_France . ?l rdf:type ontology:media }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q43192
P1001
Q15617994
USER
Which administrative territory is linked to that flag ?
(Q20668033,P1001,c(Q15617994))
action filter_type
action find
entity Q43192
relation P1001
type Q15617994
['Q20668033', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q43192 property:P1001 ?h . ?h rdf:type ontology:Q15617994 }
Flag of France
action filter_type
action find
entity Flag of France
relation applies to jurisdiction
type designation for an administrative territorial entity
['The Last Flag Raising Ceremony: Cession of New Orleans (1803)', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Flag_of_France property:applies_to_jurisdiction ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q20668033,P1001,c(Q15617994))
action filter_type
action find
entity Q43192
relation P1001
type Q15617994
[ANSWER] is linked to that flag
['Q20668033', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q43192 property:P1001 ?h . ?h rdf:type ontology:Q15617994 }
France
France is linked to that flag
France
action filter_type
action find
entity Flag of France
relation applies to jurisdiction
type designation for an administrative territorial entity
['The Last Flag Raising Ceremony: Cession of New Orleans (1803)', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Flag_of_France property:applies_to_jurisdiction ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]