Simple Question (Direct)
Simple Question
Q719552
P40
Q502895
USER
Who is a child of Asaf-Ud-Dowlah ?
(Q719552,P40,c(Q502895))
action filter_type
action find
entity Q719552
relation P40
type Q502895
['Q719552', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { resource:Q719552 property:P40 ?v . ?v rdf:type ontology:Q502895 }
Asaf-Ud-Dowlah
action filter_type
action find
entity Asaf-Ud-Dowlah
relation child
type common name
['Asaf-Ud-Dowlah', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { resource:Asaf-Ud-Dowlah property:child ?v . ?v rdf:type ontology:common_name }
[]
common name
Q305224
SYSTEM
Wazir Ali Khan
Q305224
(Q719552,P40,c(Q502895))
action filter_type
action find
entity Q719552
relation P40
type Q502895
A child of Asaf-Ud-Dowlah is the [ANSWER]
['Q719552', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?v WHERE { resource:Q719552 property:P40 ?v . ?v rdf:type ontology:Q502895 }
Wazir Ali Khan
A child of Asaf-Ud-Dowlah is the Wazir Ali Khan
Wazir Ali Khan
action filter_type
action find
entity Asaf-Ud-Dowlah
relation child
type common name
['Asaf-Ud-Dowlah', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?v WHERE { resource:Asaf-Ud-Dowlah property:child ?v . ?v rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q719552
P22
Q502895
USER
Which person has Asaf-Ud-Dowlah as a parent ?
(c(Q502895),P22,Q719552)
action filter_type
action find_reverse
entity Q719552
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q719552']
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q502895 . ?j property:P22 resource:Q719552 }
Asaf-Ud-Dowlah
action filter_type
action find_reverse
entity Asaf-Ud-Dowlah
relation father
type common name
[{'concept': 'common name'}, 'father', 'Asaf-Ud-Dowlah']
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:common_name . ?j property:father resource:Asaf-Ud-Dowlah }
[]
common name
Q305224
SYSTEM
Wazir Ali Khan
Q305224
(c(Q502895),P22,Q719552)
action filter_type
action find_reverse
entity Q719552
relation P22
type Q502895
[ANSWER] has Asaf-Ud-Dowlah as a parent
[{'concept': 'Q502895'}, 'P22', 'Q719552']
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q502895 . ?j property:P22 resource:Q719552 }
Wazir Ali Khan
Wazir Ali Khan has Asaf-Ud-Dowlah as a parent
Wazir Ali Khan
action filter_type
action find_reverse
entity Asaf-Ud-Dowlah
relation father
type common name
[{'concept': 'common name'}, 'father', 'Asaf-Ud-Dowlah']
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:common_name . ?j property:father resource:Asaf-Ud-Dowlah }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q719552
P7
Q502895
USER
Which person had Asaf-Ud-Dowlah as brother ?
(c(Q502895),P7,Q719552)
action filter_type
action find
entity Q719552
relation P7
type Q502895
[{'concept': 'Q502895'}, 'P7', 'Q719552']
SELECT DISTINCT ?l WHERE { resource:Q719552 property:P7 ?l . ?l rdf:type ontology:Q502895 }
Asaf-Ud-Dowlah
action filter_type
action find
entity Asaf-Ud-Dowlah
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Asaf-Ud-Dowlah']
SELECT DISTINCT ?l WHERE { resource:Asaf-Ud-Dowlah property:brother ?l . ?l rdf:type ontology:common_name }
[]
common name
Q3634613
SYSTEM
Saadat Ali Khan II
Q3634613
(c(Q502895),P7,Q719552)
action filter_type
action find
entity Q719552
relation P7
type Q502895
[ANSWER] had Asaf-Ud-Dowlah as brother
[{'concept': 'Q502895'}, 'P7', 'Q719552']
SELECT DISTINCT ?l WHERE { resource:Q719552 property:P7 ?l . ?l rdf:type ontology:Q502895 }
Saadat Ali Khan II
Saadat Ali Khan II had Asaf-Ud-Dowlah as brother
Saadat Ali Khan II
action filter_type
action find
entity Asaf-Ud-Dowlah
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Asaf-Ud-Dowlah']
SELECT DISTINCT ?l WHERE { resource:Asaf-Ud-Dowlah property:brother ?l . ?l rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3634613
P20
Q515
USER
Where did that person expire ?
(Q3634613,P20,c(Q515))
action filter_type
action find
entity Q3634613
relation P20
type Q515
['Q3634613', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?c WHERE { resource:Q3634613 property:P20 ?c . ?c rdf:type ontology:Q515 }
Saadat Ali Khan II
action filter_type
action find
entity Saadat Ali Khan II
relation place of death
type city
['Saadat Ali Khan II', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?c WHERE { resource:Saadat_Ali_Khan_II property:place_of_death ?c . ?c rdf:type ontology:city }
[]
city
Q47916
SYSTEM
Lucknow
Q47916
(Q3634613,P20,c(Q515))
action filter_type
action find
entity Q3634613
relation P20
type Q515
That person expired in [ANSWER]
['Q3634613', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?c WHERE { resource:Q3634613 property:P20 ?c . ?c rdf:type ontology:Q515 }
Lucknow
That person expired in Lucknow
Lucknow
action filter_type
action find
entity Saadat Ali Khan II
relation place of death
type city
['Saadat Ali Khan II', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?c WHERE { resource:Saadat_Ali_Khan_II property:place_of_death ?c . ?c rdf:type ontology:city }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P206
Q1267889 Q337567 Q515
USER
Which cities are situated close to min number of waterways or still waterss ?
(c(Q515),P206,c(Q1267889)|c(Q337567))
action argmin
action union
action find_tuple_counts
relation P206
type Q515
type Q1267889
action find_tuple_counts
relation P206
type Q515
type Q337567
[{'concept': 'Q515'}, 'P206', [{'concept': 'Q1267889'}, {'concept': 'Q337567'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MIN ( ?n ) AS ?h ) { SELECT DISTINCT ?s ( COUNT ( ?f ) AS ?n ) WHERE { ?f rdf:type ?t . VALUES ( ?t ) { ( ontology:Q337567 ) ( ontology:Q1267889 ) } } GROUP BY ?s } } . { SELECT DISTINCT ?x ( COUNT ( ?u ) AS ?p ) WHERE { { ?x property:P206 ?u . ?u rdf:type ontology:Q1267889 . ?x rdf:type ontology:Q515 } UNION { ?x property:P206 ?u . ?x rdf:type ontology:Q515 . ?u rdf:type ontology:Q337567 } } GROUP BY ?x } . FILTER ( ?p = ?h ) }
action argmin
action union
action find_tuple_counts
relation located next to body of water
type city
type waterway
action find_tuple_counts
relation located next to body of water
type city
type still waters
[{'concept': 'city'}, 'located next to body of water', [{'concept': 'waterway'}, {'concept': 'still waters'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MIN ( ?n ) AS ?h ) { SELECT DISTINCT ?s ( COUNT ( ?f ) AS ?n ) WHERE { ?f rdf:type ?t . VALUES ( ?t ) { ( ontology:still_waters ) ( ontology:waterway ) } } GROUP BY ?s } } . { SELECT DISTINCT ?x ( COUNT ( ?u ) AS ?p ) WHERE { { ?x property:located_next_to_body_of_water ?u . ?u rdf:type ontology:waterway . ?x rdf:type ontology:city } UNION { ?x property:located_next_to_body_of_water ?u . ?x rdf:type ontology:city . ?u rdf:type ontology:still_waters } } GROUP BY ?x } . FILTER ( ?p = ?h ) }
[]
waterway still waters city
Q1486 Q1773 Q1899
SYSTEM
Buenos Aires, Riga, Kyiv
Q1410 Q3075 Q1794 Q1863 Q1865 Q1519 Q496499 Q3974 Q846877 Q19689 Q1486 Q2966 Q34217 Q496479 Q602903 Q3004 Q1461 Q488869 Q217432 Q827041 Q3572 Q623549 Q2865 Q4024 Q2978 Q3806 Q2973 Q34261 Q3014 Q1773 Q1844 Q14821 Q819587 Q3955 Q23430 Q633272 Q2773 Q612815 Q320943 Q1858 Q320416 Q7473516 Q1761 Q4007 Q2706 Q7070 Q653545 Q8684 Q270704 Q41474 Q2749 Q3838 Q2833 Q1209 Q3751 Q3750 Q3200 Q3126 Q3042 Q157835 Q3046 Q847550 Q3936 Q2936 Q3214 Q2100 Q1533 Q1530 Q1731 Q1953 Q5838 Q7027 Q3994 Q19660 Q11194 Q3915 Q2119 Q3069 Q1720 Q1721 Q329996 Q3904 Q695920 Q2910 Q3861 Q1899 Q2999 Q2844
(c(Q515),P206,c(Q1267889)|c(Q337567))
action argmin
action union
action find_tuple_counts
relation P206
type Q515
type Q1267889
action find_tuple_counts
relation P206
type Q515
type Q337567
[ANSWERS] are situated close to min number of waterways or still waterss
[{'concept': 'Q515'}, 'P206', [{'concept': 'Q1267889'}, {'concept': 'Q337567'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MIN ( ?n ) AS ?h ) { SELECT DISTINCT ?s ( COUNT ( ?f ) AS ?n ) WHERE { ?f rdf:type ?t . VALUES ( ?t ) { ( ontology:Q337567 ) ( ontology:Q1267889 ) } } GROUP BY ?s } } . { SELECT DISTINCT ?x ( COUNT ( ?u ) AS ?p ) WHERE { { ?x property:P206 ?u . ?u rdf:type ontology:Q1267889 . ?x rdf:type ontology:Q515 } UNION { ?x property:P206 ?u . ?x rdf:type ontology:Q515 . ?u rdf:type ontology:Q337567 } } GROUP BY ?x } . FILTER ( ?p = ?h ) }
Gibraltar Fürth Frankfurt Andorra la Vella Kuala Lumpur Abu Dhabi Kazuno Landshut Semboku Tirana Buenos Aires Heidelberg Oxford Yokote Yurihonjō Ingolstadt Manila Benalmádena Port Harcourt Beroun Tunis Puerto de la Cruz Kassel Frankfurt (Oder) Regensburg Tübingen Darmstadt Port-au-Prince Wolfsburg Riga Vaduz Coburg Noshiro Weimar Ulaanbaatar Yuzawa Braunschweig Garachico Matsudo Hanoi Tartessos Tokyo Dublin Rosenheim Bremerhaven Eisenach Kita-Akita Seoul Třebíč Kingstown Augsburg Kinshasa Freiburg im Breisgau Free Hanseatic City of Bremen Praia Gera Salzgitter Erlangen Offenbach am Main Zaporizhzhya Pforzheim Nikaho Bamberg Oldenburg Cottbus Duisburg Caracas Baghdad Dresden Yerevan Kabul Straubing Kempten Bucharest Sarajevo Antananarivo Mannheim Bottrop Mainz Wiesbaden Ōdate Mbabane Daisen Ludwigshafen Doha Kyiv Würzburg Brasília
Buenos Aires, Riga and Kyiv are situated close to min number of waterways or still waterss
Buenos Aires Riga Kyiv
action argmin
action union
action find_tuple_counts
relation located next to body of water
type city
type waterway
action find_tuple_counts
relation located next to body of water
type city
type still waters
[{'concept': 'city'}, 'located next to body of water', [{'concept': 'waterway'}, {'concept': 'still waters'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MIN ( ?n ) AS ?h ) { SELECT DISTINCT ?s ( COUNT ( ?f ) AS ?n ) WHERE { ?f rdf:type ?t . VALUES ( ?t ) { ( ontology:still_waters ) ( ontology:waterway ) } } GROUP BY ?s } } . { SELECT DISTINCT ?x ( COUNT ( ?u ) AS ?p ) WHERE { { ?x property:located_next_to_body_of_water ?u . ?u rdf:type ontology:waterway . ?x rdf:type ontology:city } UNION { ?x property:located_next_to_body_of_water ?u . ?x rdf:type ontology:city . ?u rdf:type ontology:still_waters } } GROUP BY ?x } . FILTER ( ?p = ?h ) }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q1486 Q1773 Q1899
P190
Q515
USER
Which cities are twin town of those ones ?
(c(Q515),P190,Q1486) (c(Q515),P190,Q1773) (c(Q515),P190,Q1899)
action filter_type
action find_reverse
entity prev_answer
relation P190
type Q515
[{'concept': 'Q515'}, 'P190', 'Q1486'] [{'concept': 'Q515'}, 'P190', 'Q1773'] [{'concept': 'Q515'}, 'P190', 'Q1899']
SELECT DISTINCT ?g WHERE { VALUES ( ?b ) { ( resource:Q1410 ) ( resource:Q3075 ) ( resource:Q1794 ) } . ?g rdf:type ontology:Q515 . ?g property:P190 ?b }
Buenos Aires Riga Kyiv
action filter_type
action find_reverse
entity prev_answer
relation sister city
type city
[{'concept': 'city'}, 'sister city', 'Buenos Aires'] [{'concept': 'city'}, 'sister city', 'Riga'] [{'concept': 'city'}, 'sister city', 'Kyiv']
SELECT DISTINCT ?g WHERE { VALUES ( ?b ) { ( resource:Gibraltar ) ( resource:Fürth ) ( resource:Frankfurt ) } . ?g rdf:type ontology:city . ?g property:sister_city ?b }
[]
city
Q1486 Q1773 Q1899
SYSTEM
Buenos Aires, Riga, Kyiv
Q8684 Q2900 Q2887 Q1899 Q1953 Q2844 Q8652 Q42622 Q2887 Q1899 Q3926 Q2079 Q42622 Q2887 Q1486 Q1773 Q19689 Q1953 Q9005
(c(Q515),P190,Q1486) (c(Q515),P190,Q1773) (c(Q515),P190,Q1899)
action filter_type
action find_reverse
entity prev_answer
relation P190
type Q515
[ANSWERS] are twin town of those ones
[{'concept': 'Q515'}, 'P190', 'Q1486'] [{'concept': 'Q515'}, 'P190', 'Q1773'] [{'concept': 'Q515'}, 'P190', 'Q1899']
SELECT DISTINCT ?g WHERE { VALUES ( ?b ) { ( resource:Q1410 ) ( resource:Q3075 ) ( resource:Q1794 ) } . ?g rdf:type ontology:Q515 . ?g property:P190 ?b }
Seoul Quito Santiago Kyiv Yerevan Brasília Miami Suzhou Santiago Kyiv Pretoria Leipzig Suzhou Santiago Buenos Aires Riga Tirana Yerevan Brussels
Buenos Aires, Riga and Kyiv are twin town of those ones
Buenos Aires Riga Kyiv
action filter_type
action find_reverse
entity prev_answer
relation sister city
type city
[{'concept': 'city'}, 'sister city', 'Buenos Aires'] [{'concept': 'city'}, 'sister city', 'Riga'] [{'concept': 'city'}, 'sister city', 'Kyiv']
SELECT DISTINCT ?g WHERE { VALUES ( ?b ) { ( resource:Gibraltar ) ( resource:Fürth ) ( resource:Frankfurt ) } . ?g rdf:type ontology:city . ?g property:sister_city ?b }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1486
P1376
Q7275
USER
Which state has Buenos Aires as its capital ?
(Q1486,P1376,c(Q7275))
action filter_type
action find
entity Q1486
relation P1376
type Q7275
['Q1486', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q7275 . resource:Q1486 property:P1376 ?m }
Buenos Aires
action filter_type
action find
entity Buenos Aires
relation capital of
type state
['Buenos Aires', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:state . resource:Buenos_Aires property:capital_of ?m }
[]
state
Q738144
SYSTEM
United Provinces of the Río de la Plata
Q738144
(Q1486,P1376,c(Q7275))
action filter_type
action find
entity Q1486
relation P1376
type Q7275
The [ANSWER] has Buenos Aires as its capital
['Q1486', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q7275 . resource:Q1486 property:P1376 ?m }
United Provinces of the Río de la Plata
The United Provinces of the Río de la Plata has Buenos Aires as its capital
United Provinces of the Río de la Plata
action filter_type
action find
entity Buenos Aires
relation capital of
type state
['Buenos Aires', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:state . resource:Buenos_Aires property:capital_of ?m }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1865
Q7275
USER
And how about Kuala Lumpur?
(Q1865,P1376,c(Q7275))
action filter_type
action find
entity Q1865
relation P1376
type Q7275
['Q1865', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q7275 . resource:Q1865 property:P1376 ?i }
Kuala Lumpur
action filter_type
action find
entity Kuala Lumpur
relation capital of
type state
['Kuala Lumpur', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:state . resource:Kuala_Lumpur property:capital_of ?i }
[]
state
Q1479726
SYSTEM
Federation of Malaya
Q1479726
(Q1865,P1376,c(Q7275))
action filter_type
action find
entity Q1865
relation P1376
type Q7275
[ANSWER]
['Q1865', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q7275 . resource:Q1865 property:P1376 ?i }
Federation of Malaya
Federation of Malaya
action filter_type
action find
entity Kuala Lumpur
relation capital of
type state
['Kuala Lumpur', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:state . resource:Kuala_Lumpur property:capital_of ?i }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q1479726 Q1865 Q485891
P36
Q515
USER
Does that state consists of Kuala Lumpur and Ananyiv as its capital ?
(Q1479726,P36,Q1865) (Q1479726,P36,Q485891)
action is_in
entity Q1479726
action intersection
action find_reverse
entity Q1865
relation P36
action find_reverse
entity Q485891
relation P36
['Q1479726', 'P36', 'Q1865'] ['Q1479726', 'P36', 'Q485891']
ASK WHERE { resource:Q1479726 property:P36 resource:Q1865 . resource:Q1479726 property:P36 resource:Q485891 }
Federation of Malaya Kuala Lumpur Ananyiv
action is_in
entity Federation of Malaya
action intersection
action find_reverse
entity Kuala Lumpur
relation capital
action find_reverse
entity Ananyiv
relation capital
['Federation of Malaya', 'capital', 'Kuala Lumpur'] ['Federation of Malaya', 'capital', 'Ananyiv']
ASK WHERE { resource:Federation_of_Malaya property:capital resource:Kuala_Lumpur . resource:Federation_of_Malaya property:capital resource:Ananyiv }
[]
city
SYSTEM
YES and NO respectively
(Q1479726,P36,Q1865) (Q1479726,P36,Q485891)
action is_in
entity Q1479726
action intersection
action find_reverse
entity Q1865
relation P36
action find_reverse
entity Q485891
relation P36
[ANSWER]
['Q1479726', 'P36', 'Q1865'] ['Q1479726', 'P36', 'Q485891']
ASK WHERE { resource:Q1479726 property:P36 resource:Q1865 . resource:Q1479726 property:P36 resource:Q485891 }
YES and NO respectively
action is_in
entity Federation of Malaya
action intersection
action find_reverse
entity Kuala Lumpur
relation capital
action find_reverse
entity Ananyiv
relation capital
['Federation of Malaya', 'capital', 'Kuala Lumpur'] ['Federation of Malaya', 'capital', 'Ananyiv']
ASK WHERE { resource:Federation_of_Malaya property:capital resource:Kuala_Lumpur . resource:Federation_of_Malaya property:capital resource:Ananyiv }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q1479726
P27
Q502895
USER
How many people are a native of Federation of Malaya ?
(c(Q502895),P27,Q1479726)
action count
action filter_type
action find_reverse
entity Q1479726
relation P27
type Q502895
[{'concept': 'Q502895'}, 'P27', 'Q1479726']
SELECT DISTINCT ( COUNT ( ?q ) AS ?d ) WHERE { ?q property:P27 resource:Q1479726 . ?q rdf:type ontology:Q502895 }
Federation of Malaya
action count
action filter_type
action find_reverse
entity Federation of Malaya
relation country of citizenship
type common name
[{'concept': 'common name'}, 'country of citizenship', 'Federation of Malaya']
SELECT DISTINCT ( COUNT ( ?q ) AS ?d ) WHERE { ?q property:country_of_citizenship resource:Federation_of_Malaya . ?q rdf:type ontology:common_name }
[]
common name
SYSTEM
7
Q11798346 Q11756603 Q11728423 Q11689897 Q27068811 Q27068218 Q11784595
(c(Q502895),P27,Q1479726)
action count
action filter_type
action find_reverse
entity Q1479726
relation P27
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P27', 'Q1479726']
SELECT DISTINCT ( COUNT ( ?q ) AS ?d ) WHERE { ?q property:P27 resource:Q1479726 . ?q rdf:type ontology:Q502895 }
Ong Hock Eng Liew Foh Sin Joseph Chong Chan Kooi Chye Lee Chee Neo Moey Chwee Lan Moe Fu Kiat
7
action count
action filter_type
action find_reverse
entity Federation of Malaya
relation country of citizenship
type common name
[{'concept': 'common name'}, 'country of citizenship', 'Federation of Malaya']
SELECT DISTINCT ( COUNT ( ?q ) AS ?d ) WHERE { ?q property:country_of_citizenship resource:Federation_of_Malaya . ?q rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q738144
P710
Q350604 Q1190554
USER
How many armed conflicts and events did United Provinces of the Río de la Plata participate in ?
(c(Q350604),P710,Q738144) (c(Q1190554),P710,Q738144)
action count
action union
action filter_type
action find_reverse
entity Q738144
relation P710
type Q350604
action filter_type
action find_reverse
entity Q738144
relation P710
type Q1190554
[{'concept': 'Q350604'}, 'P710', 'Q738144'] [{'concept': 'Q1190554'}, 'P710', 'Q738144']
SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { { ?o property:P710 resource:Q738144 . ?o rdf:type ontology:Q350604 } UNION { ?o property:P710 resource:Q738144 . ?o rdf:type ontology:Q1190554 } }
United Provinces of the Río de la Plata
action count
action union
action filter_type
action find_reverse
entity United Provinces of the Río de la Plata
relation participant
type armed conflict
action filter_type
action find_reverse
entity United Provinces of the Río de la Plata
relation participant
type event
[{'concept': 'armed conflict'}, 'participant', 'United Provinces of the Río de la Plata'] [{'concept': 'event'}, 'participant', 'United Provinces of the Río de la Plata']
SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { { ?o property:participant resource:United_Provinces_of_the_Río_de_la_Plata . ?o rdf:type ontology:armed_conflict } UNION { ?o property:participant resource:United_Provinces_of_the_Río_de_la_Plata . ?o rdf:type ontology:event } }
[]
armed conflict event
SYSTEM
1 armed conflicts and 1 events
Q288251 Q2387020
(c(Q350604),P710,Q738144) (c(Q1190554),P710,Q738144)
action count
action union
action filter_type
action find_reverse
entity Q738144
relation P710
type Q350604
action filter_type
action find_reverse
entity Q738144
relation P710
type Q1190554
[ANSWER]
[{'concept': 'Q350604'}, 'P710', 'Q738144'] [{'concept': 'Q1190554'}, 'P710', 'Q738144']
SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { { ?o property:P710 resource:Q738144 . ?o rdf:type ontology:Q350604 } UNION { ?o property:P710 resource:Q738144 . ?o rdf:type ontology:Q1190554 } }
Cisplatine War Battle of Sarandí
1 armed conflicts and 1 events
action count
action union
action filter_type
action find_reverse
entity United Provinces of the Río de la Plata
relation participant
type armed conflict
action filter_type
action find_reverse
entity United Provinces of the Río de la Plata
relation participant
type event
[{'concept': 'armed conflict'}, 'participant', 'United Provinces of the Río de la Plata'] [{'concept': 'event'}, 'participant', 'United Provinces of the Río de la Plata']
SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { { ?o property:participant resource:United_Provinces_of_the_Río_de_la_Plata . ?o rdf:type ontology:armed_conflict } UNION { ?o property:participant resource:United_Provinces_of_the_Río_de_la_Plata . ?o rdf:type ontology:event } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q738144
P85
Q484692
USER
Which hymn is the anthem for that state ?
action filter_type
action find
entity Q738144
relation P85
type Q484692
SELECT DISTINCT ?r WHERE { resource:Q738144 property:P85 ?r . ?r rdf:type ontology:Q484692 }
United Provinces of the Río de la Plata
action filter_type
action find
entity United Provinces of the Río de la Plata
relation anthem
type hymn
SELECT DISTINCT ?r WHERE { resource:United_Provinces_of_the_Río_de_la_Plata property:anthem ?r . ?r rdf:type ontology:hymn }
[]
hymn
Q172495
SYSTEM
Argentine National Anthem
Q172495
action filter_type
action find
entity Q738144
relation P85
type Q484692
[ANSWER] is the anthem for that state
SELECT DISTINCT ?r WHERE { resource:Q738144 property:P85 ?r . ?r rdf:type ontology:Q484692 }
Argentine National Anthem
Argentine National Anthem is the anthem for that state
Argentine National Anthem
action filter_type
action find
entity United Provinces of the Río de la Plata
relation anthem
type hymn
SELECT DISTINCT ?r WHERE { resource:United_Provinces_of_the_Río_de_la_Plata property:anthem ?r . ?r rdf:type ontology:hymn }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q15993019 Q305224
P27
Q15617994
USER
Which administrative territories do Wazir Ali Khan or Mauricio González-Gordon y Díez belong to ?
OR((Q305224,P27,c(Q15617994)), (Q15993019,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q305224
relation P27
action find
entity Q15993019
relation P27
type Q15617994
{'OR': [['Q305224', 'P27', {'concept': 'Q15617994'}], ['Q15993019', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { { VALUES ( ?l ) { ( resource:Q305224 ) ( resource:Q15993019 ) } . ?l property:P27 ?t } . ?t rdf:type ontology:Q15617994 }
Mauricio González-Gordon y Díez Wazir Ali Khan
action filter_type
action union
action find
entity Wazir Ali Khan
relation country of citizenship
action find
entity Mauricio González-Gordon y Díez
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Wazir Ali Khan', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Mauricio González-Gordon y Díez', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { VALUES ( ?l ) { ( resource:Wazir_Ali_Khan ) ( resource:Mauricio_González-Gordon_y_Díez ) } . ?l property:country_of_citizenship ?t } . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q668 Q145
SYSTEM
India, United Kingdom
Q668 Q145
OR((Q305224,P27,c(Q15617994)), (Q15993019,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q305224
relation P27
action find
entity Q15993019
relation P27
type Q15617994
Wazir Ali Khan or Mauricio González-Gordon y Díez belong to the [ANSWERS]
{'OR': [['Q305224', 'P27', {'concept': 'Q15617994'}], ['Q15993019', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { { VALUES ( ?l ) { ( resource:Q305224 ) ( resource:Q15993019 ) } . ?l property:P27 ?t } . ?t rdf:type ontology:Q15617994 }
India United Kingdom
Wazir Ali Khan or Mauricio González-Gordon y Díez belong to the India and United Kingdom
India United Kingdom
action filter_type
action union
action find
entity Wazir Ali Khan
relation country of citizenship
action find
entity Mauricio González-Gordon y Díez
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Wazir Ali Khan', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Mauricio González-Gordon y Díez', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { VALUES ( ?l ) { ( resource:Wazir_Ali_Khan ) ( resource:Mauricio_González-Gordon_y_Díez ) } . ?l property:country_of_citizenship ?t } . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1689761
P27
Q502895
USER
Are Jiří Datel Novotný a citizen of those administrative territories ?
(Q1689761,P27,Q668) (Q1689761,P27,Q145)
action is_in
entity prev_answer
action find
entity Q1689761
relation P27
['Q1689761', 'P27', 'Q668'] ['Q1689761', 'P27', 'Q145']
ASK WHERE { VALUES ( ?i ) { ( resource:Q668 ) ( resource:Q145 ) } . resource:Q1689761 property:P27 ?i }
Jiří Datel Novotný
action is_in
entity prev_answer
action find
entity Jiří Datel Novotný
relation country of citizenship
['Jiří Datel Novotný', 'country of citizenship', 'India'] ['Jiří Datel Novotný', 'country of citizenship', 'United Kingdom']
ASK WHERE { VALUES ( ?i ) { ( resource:India ) ( resource:United_Kingdom ) } . resource:Jiří_Datel_Novotný property:country_of_citizenship ?i }
[]
common name
SYSTEM
NO
(Q1689761,P27,Q668) (Q1689761,P27,Q145)
action is_in
entity prev_answer
action find
entity Q1689761
relation P27
[ANSWER]
['Q1689761', 'P27', 'Q668'] ['Q1689761', 'P27', 'Q145']
ASK WHERE { VALUES ( ?i ) { ( resource:Q668 ) ( resource:Q145 ) } . resource:Q1689761 property:P27 ?i }
No
action is_in
entity prev_answer
action find
entity Jiří Datel Novotný
relation country of citizenship
['Jiří Datel Novotný', 'country of citizenship', 'India'] ['Jiří Datel Novotný', 'country of citizenship', 'United Kingdom']
ASK WHERE { VALUES ( ?i ) { ( resource:India ) ( resource:United_Kingdom ) } . resource:Jiří_Datel_Novotný property:country_of_citizenship ?i }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q172495
P676
Q502895
USER
Who is the lyricist of Argentine National Anthem ?
(Q172495,P676,c(Q502895))
action filter_type
action find
entity Q172495
relation P676
type Q502895
['Q172495', 'P676', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q172495 property:P676 ?e . ?e rdf:type ontology:Q502895 }
Argentine National Anthem
action filter_type
action find
entity Argentine National Anthem
relation lyrics by
type common name
['Argentine National Anthem', 'lyrics by', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:Argentine_National_Anthem property:lyrics_by ?e . ?e rdf:type ontology:common_name }
[]
common name
Q441072
SYSTEM
Vicente López y Planes
Q441072
(Q172495,P676,c(Q502895))
action filter_type
action find
entity Q172495
relation P676
type Q502895
The lyricist of Argentine National is Juan [ANSWER]
['Q172495', 'P676', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q172495 property:P676 ?e . ?e rdf:type ontology:Q502895 }
Vicente López y Planes
The lyricist of Argentine National is Juan Vicente López y Planes
Vicente López y Planes
action filter_type
action find
entity Argentine National Anthem
relation lyrics by
type common name
['Argentine National Anthem', 'lyrics by', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:Argentine_National_Anthem property:lyrics_by ?e . ?e rdf:type ontology:common_name }
[]