Simple Question (Direct)
Simple Question
Q5082186
P1412
Q34770
USER
Which language is Charles Rossiter Forwood capable of writing ?
(Q5082186,P1412,c(Q34770))
action filter_type
action find
entity Q5082186
relation P1412
type Q34770
['Q5082186', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q34770 . resource:Q5082186 property:P1412 ?w }
Charles Rossiter Forwood
action filter_type
action find
entity Charles Rossiter Forwood
relation languages spoken, written or signed
type language
['Charles Rossiter Forwood', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:language . resource:Charles_Rossiter_Forwood property:languages_spoken,_written_or_signed ?w }
[]
language
Q1860
SYSTEM
English
Q1860
(Q5082186,P1412,c(Q34770))
action filter_type
action find
entity Q5082186
relation P1412
type Q34770
[ANSWER] is Charles Rossiter Forwood capable of writing
['Q5082186', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q34770 . resource:Q5082186 property:P1412 ?w }
English
English is Charles Rossiter Forwood capable of writing
English
action filter_type
action find
entity Charles Rossiter Forwood
relation languages spoken, written or signed
type language
['Charles Rossiter Forwood', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:language . resource:Charles_Rossiter_Forwood property:languages_spoken,_written_or_signed ?w }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5082186
P20
Q56061
USER
Where did that person die ?
(Q1860,P20,c(Q56061))
action filter_type
action find
entity Q5082186
relation P20
type Q56061
['Q1860', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q5082186 property:P20 ?p . ?p rdf:type ontology:Q56061 }
Charles Rossiter Forwood
action filter_type
action find
entity Charles Rossiter Forwood
relation place of death
type administrative territorial entity
['English', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Charles_Rossiter_Forwood property:place_of_death ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q3141
SYSTEM
Melbourne
Q3141
(Q1860,P20,c(Q56061))
action filter_type
action find
entity Q5082186
relation P20
type Q56061
That person died in [ANSWER]
['Q1860', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q5082186 property:P20 ?p . ?p rdf:type ontology:Q56061 }
Melbourne
That person died in Melbourne
Melbourne
action filter_type
action find
entity Charles Rossiter Forwood
relation place of death
type administrative territorial entity
['English', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Charles_Rossiter_Forwood property:place_of_death ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q3141 Q4807092 Q20283419
P190
Q56061
USER
Is that administrative territory twin town of Ask Shahr and Santa Teresa de Jesús ?
(Q3141,P190,Q4807092) (Q3141,P190,Q20283419)
action is_in
entity Q3141
action intersection
action find_reverse
entity Q4807092
relation P190
action find_reverse
entity Q20283419
relation P190
['Q3141', 'P190', 'Q4807092'] ['Q3141', 'P190', 'Q20283419']
ASK WHERE { resource:Q3141 property:P190 resource:Q4807092 . resource:Q3141 property:P190 resource:Q20283419 }
Melbourne Ask Shahr Santa Teresa de Jesús
action is_in
entity Melbourne
action intersection
action find_reverse
entity Ask Shahr
relation sister city
action find_reverse
entity Santa Teresa de Jesús
relation sister city
['Melbourne', 'sister city', 'Ask Shahr'] ['Melbourne', 'sister city', 'Santa Teresa de Jesús']
ASK WHERE { resource:Melbourne property:sister_city resource:Ask_Shahr . resource:Melbourne property:sister_city resource:Santa_Teresa_de_Jesús }
[]
administrative territorial entity
SYSTEM
NO
(Q3141,P190,Q4807092) (Q3141,P190,Q20283419)
action is_in
entity Q3141
action intersection
action find_reverse
entity Q4807092
relation P190
action find_reverse
entity Q20283419
relation P190
[ANSWER]
['Q3141', 'P190', 'Q4807092'] ['Q3141', 'P190', 'Q20283419']
ASK WHERE { resource:Q3141 property:P190 resource:Q4807092 . resource:Q3141 property:P190 resource:Q20283419 }
No
action is_in
entity Melbourne
action intersection
action find_reverse
entity Ask Shahr
relation sister city
action find_reverse
entity Santa Teresa de Jesús
relation sister city
['Melbourne', 'sister city', 'Ask Shahr'] ['Melbourne', 'sister city', 'Santa Teresa de Jesús']
ASK WHERE { resource:Melbourne property:sister_city resource:Ask_Shahr . resource:Melbourne property:sister_city resource:Santa_Teresa_de_Jesús }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q5082186 Q408 Q15936
P27
Q1048835
USER
Is Charles Rossiter Forwood a citizen of Australia and Argençola ?
(Q5082186,P27,Q408) (Q5082186,P27,Q15936)
action is_in
entity Q5082186
action intersection
action find_reverse
entity Q408
relation P27
action find_reverse
entity Q15936
relation P27
['Q5082186', 'P27', 'Q408'] ['Q5082186', 'P27', 'Q15936']
ASK WHERE { resource:Q5082186 property:P27 resource:Q408 . resource:Q5082186 property:P27 resource:Q15936 }
Charles Rossiter Forwood Australia Argençola
action is_in
entity Charles Rossiter Forwood
action intersection
action find_reverse
entity Australia
relation country of citizenship
action find_reverse
entity Argençola
relation country of citizenship
['Charles Rossiter Forwood', 'country of citizenship', 'Australia'] ['Charles Rossiter Forwood', 'country of citizenship', 'Argençola']
ASK WHERE { resource:Charles_Rossiter_Forwood property:country_of_citizenship resource:Australia . resource:Charles_Rossiter_Forwood property:country_of_citizenship resource:Argençola }
[]
political territorial entity
SYSTEM
YES and NO respectively
(Q5082186,P27,Q408) (Q5082186,P27,Q15936)
action is_in
entity Q5082186
action intersection
action find_reverse
entity Q408
relation P27
action find_reverse
entity Q15936
relation P27
[ANSWER]
['Q5082186', 'P27', 'Q408'] ['Q5082186', 'P27', 'Q15936']
ASK WHERE { resource:Q5082186 property:P27 resource:Q408 . resource:Q5082186 property:P27 resource:Q15936 }
YES and NO respectively
action is_in
entity Charles Rossiter Forwood
action intersection
action find_reverse
entity Australia
relation country of citizenship
action find_reverse
entity Argençola
relation country of citizenship
['Charles Rossiter Forwood', 'country of citizenship', 'Australia'] ['Charles Rossiter Forwood', 'country of citizenship', 'Argençola']
ASK WHERE { resource:Charles_Rossiter_Forwood property:country_of_citizenship resource:Australia . resource:Charles_Rossiter_Forwood property:country_of_citizenship resource:Argençola }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q403 Q408
P530
Q15617994
USER
Which administrative territories have a diplomatic relationship with Australia or Serbia ?
OR((Q408,P530,c(Q15617994)), (Q403,P530,c(Q15617994)))
action filter_type
action union
action find
entity Q408
relation P530
action find
entity Q403
relation P530
type Q15617994
{'OR': [['Q408', 'P530', {'concept': 'Q15617994'}], ['Q403', 'P530', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q15617994 . { { resource:Q408 property:P530 ?t } UNION { resource:Q403 property:P530 ?t } } }
Serbia Australia
action filter_type
action union
action find
entity Australia
relation diplomatic relation
action find
entity Serbia
relation diplomatic relation
type designation for an administrative territorial entity
{'OR': [['Australia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Serbia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Australia property:diplomatic_relation ?t } UNION { resource:Serbia property:diplomatic_relation ?t } } }
[]
designation for an administrative territorial entity
Q77 Q822 Q902 Q55 Q811 Q155 Q45 Q252 Q96 Q218
SYSTEM
Some of them are Uruguay, Lebanon, Bangladesh, Netherlands, Nicaragua, Brazil, Portugal, Indonesia, Mexico, Romania
Q702 Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q783 Q786 Q924 Q712 Q711 Q836 Q837 Q252 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q796 Q794 Q954 Q889 Q884 Q881 Q822 Q244 Q33 Q921 Q31 Q30 Q37 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q424 Q851 Q733 Q854 Q734 Q736 Q233 Q20 Q1041 Q27 Q28 Q29 Q1027 Q1020 Q843 Q1029 Q225 Q224 Q221 Q96 Q229 Q17 Q902 Q1036 Q1033 Q1030 Q191 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q215 Q218 Q219 Q916 Q833 Q977 Q1009 Q683 Q686 Q574 Q79 Q77 Q878 Q774 Q817 Q810 Q811 Q819 Q678 Q33788 Q869 Q953
OR((Q408,P530,c(Q15617994)), (Q403,P530,c(Q15617994)))
action filter_type
action union
action find
entity Q408
relation P530
action find
entity Q403
relation P530
type Q15617994
[ANSWERS] have a diplomatic relationship with Australia or Serbia
{'OR': [['Q408', 'P530', {'concept': 'Q15617994'}], ['Q403', 'P530', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q15617994 . { { resource:Q408 property:P530 ?t } UNION { resource:Q403 property:P530 ?t } } }
Federated States of Micronesia Israel Costa Rica Peru India Argentina France Netherlands United Kingdom People's Republic of China Honduras Dominican Republic Tanzania Fiji Mongolia Myanmar Nepal Indonesia Serbia South Africa Portugal Russia Turkey Greece Brazil El Salvador Iraq Iran Zimbabwe Afghanistan South Korea Vietnam Lebanon Barbados Finland Brunei Belgium United States of America Lithuania Poland Sweden Philippines Switzerland Italy Colombia North Korea Cambodia Saudi Arabia Paraguay Sri Lanka Guyana Ecuador Malta Norway Senegal Ireland Hungary Spain Mauritius Malawi Pakistan Mozambique Bosnia and Herzegovina Croatia Republic of Macedonia Mexico Cyprus Japan Bangladesh Uganda Nigeria Namibia Estonia Botswana Nauru Chile Palau Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Slovenia Romania Bulgaria Angola Malaysia Djibouti Cameroon Samoa Vanuatu East Timor Egypt Uruguay United Arab Emirates Guatemala Kuwait Jordan Nicaragua Laos Tonga New Caledonia Thailand Zambia
Uruguay, Lebanon, Bangladesh, Netherlands, Nicaragua, Brazil, Portugal, Indonesia, Mexico and Romania have a diplomatic relationship with Australia or Serbia
Uruguay Lebanon Bangladesh Netherlands Nicaragua Brazil Portugal Indonesia Mexico Romania
action filter_type
action union
action find
entity Australia
relation diplomatic relation
action find
entity Serbia
relation diplomatic relation
type designation for an administrative territorial entity
{'OR': [['Australia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Serbia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Australia property:diplomatic_relation ?t } UNION { resource:Serbia property:diplomatic_relation ?t } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q1860 Q27303863
P361
Q5962346
USER
How many classification schemes are English or human figure a component of ?
(Q1860,P361,c(Q5962346)) (Q27303863,P361,c(Q5962346))
action count
action union
action filter_type
action find
entity Q1860
relation P361
type Q5962346
action filter_type
action find
entity Q27303863
relation P361
type Q5962346
['Q1860', 'P361', {'concept': 'Q5962346'}] ['Q27303863', 'P361', {'concept': 'Q5962346'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) WHERE { { resource:Q1860 property:P361 ?t . ?t rdf:type ontology:Q5962346 } UNION { resource:Q27303863 property:P361 ?t . ?t rdf:type ontology:Q5962346 } }
English human figure
action count
action union
action filter_type
action find
entity English
relation part of
type classification scheme
action filter_type
action find
entity human figure
relation part of
type classification scheme
['English', 'part of', {'concept': 'classification scheme'}] ['human figure', 'part of', {'concept': 'classification scheme'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) WHERE { { resource:English property:part_of ?t . ?t rdf:type ontology:classification_scheme } UNION { resource:human_figure property:part_of ?t . ?t rdf:type ontology:classification_scheme } }
[]
classification scheme
SYSTEM
3
Q1346342 Q18336 Q5329170
(Q1860,P361,c(Q5962346)) (Q27303863,P361,c(Q5962346))
action count
action union
action filter_type
action find
entity Q1860
relation P361
type Q5962346
action filter_type
action find
entity Q27303863
relation P361
type Q5962346
[ANSWER]
['Q1860', 'P361', {'concept': 'Q5962346'}] ['Q27303863', 'P361', {'concept': 'Q5962346'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) WHERE { { resource:Q1860 property:P361 ?t . ?t rdf:type ontology:Q5962346 } UNION { resource:Q27303863 property:P361 ?t . ?t rdf:type ontology:Q5962346 } }
Anglic languages heraldry Anglo-Frisian languages
3
action count
action union
action filter_type
action find
entity English
relation part of
type classification scheme
action filter_type
action find
entity human figure
relation part of
type classification scheme
['English', 'part of', {'concept': 'classification scheme'}] ['human figure', 'part of', {'concept': 'classification scheme'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?z ) WHERE { { resource:English property:part_of ?t . ?t rdf:type ontology:classification_scheme } UNION { resource:human_figure property:part_of ?t . ?t rdf:type ontology:classification_scheme } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P138
Q14524493 Q1190554 Q15617994
USER
Which administrative territories have around 1 terrains or events as their toponym ?
(c(Q15617994),P138,c(Q14524493)|c(Q1190554))
action approx
action union
action find_tuple_counts
relation P138
type Q15617994
type Q14524493
action find_tuple_counts
relation P138
type Q15617994
type Q1190554
value 1
[{'concept': 'Q15617994'}, 'P138', [{'concept': 'Q14524493'}, {'concept': 'Q1190554'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?o ) ?t WHERE { VALUES ( ?f ) { ( ontology:Q14524493 ) ( ontology:Q1190554 ) } . ?i rdf:type ?f } GROUP BY ?t } . FILTER ( ?o = 1 ) }
action approx
action union
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type terrain
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type event
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'named after', [{'concept': 'terrain'}, {'concept': 'event'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?o ) ?t WHERE { VALUES ( ?f ) { ( ontology:terrain ) ( ontology:event ) } . ?i rdf:type ?f } GROUP BY ?t } . FILTER ( ?o = 1 ) }
[]
terrain event designation for an administrative territorial entity
Q12694 Q12580 Q1393469
SYSTEM
Puy-de-Dôme, Lozère, Jemmapes
Q1090684 Q568751 Q1508919 Q12694 Q1452646 Q691265 Q12580 Q2921370 Q1393469 Q2528268
(c(Q15617994),P138,c(Q14524493)|c(Q1190554))
action approx
action union
action find_tuple_counts
relation P138
type Q15617994
type Q14524493
action find_tuple_counts
relation P138
type Q15617994
type Q1190554
value 1
[ANSWERS] have around 1 terrains or events as their toponym
[{'concept': 'Q15617994'}, 'P138', [{'concept': 'Q14524493'}, {'concept': 'Q1190554'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?o ) ?t WHERE { VALUES ( ?f ) { ( ontology:Q14524493 ) ( ontology:Q1190554 ) } . ?i rdf:type ?f } GROUP BY ?t } . FILTER ( ?o = 1 ) }
Montserrat Mont-Tonnerre Marengo Puy-de-Dôme Montenotte Mont-Terrible Lozère Bouches-de-l'Èbre-Montserrat Jemmapes Mont-Blanc
Puy-de-Dôme, Lozère and Jemmapes have around 1 terrains or events as their toponym
Puy-de-Dôme Lozère Jemmapes
action approx
action union
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type terrain
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type event
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'named after', [{'concept': 'terrain'}, {'concept': 'event'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?o ) ?t WHERE { VALUES ( ?f ) { ( ontology:terrain ) ( ontology:event ) } . ?i rdf:type ?f } GROUP BY ?t } . FILTER ( ?o = 1 ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q13573 Q5082186
P47 P27
Q1048835
USER
Which political territories are Charles Rossiter Forwood an inhabitant of or are adjacent to Torroella de Montgrí ?
OR((Q5082186,P27,c(Q1048835)), (Q13573,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q5082186
relation P27
action find
entity Q13573
relation P47
type Q1048835
{'OR': [['Q5082186', 'P27', {'concept': 'Q1048835'}], ['Q13573', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q5082186 property:P27 ?o } UNION { resource:Q13573 property:P47 ?o } } . ?o rdf:type ontology:Q1048835 }
Torroella de Montgrí Charles Rossiter Forwood
action filter_type
action union
action find
entity Charles Rossiter Forwood
relation country of citizenship
action find
entity Torroella de Montgrí
relation shares border with
type political territorial entity
{'OR': [['Charles Rossiter Forwood', 'country of citizenship', {'concept': 'political territorial entity'}], ['Torroella de Montgrí', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Charles_Rossiter_Forwood property:country_of_citizenship ?o } UNION { resource:Torroella_de_Montgrí property:shares_border_with ?o } } . ?o rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q13592 Q11304 Q13476 Q13461 Q408 Q13472 Q13493
SYSTEM
Ullà, L'Escala, Fontanilles, Bellcaire d'Empordà, Australia, Gualta, Pals
Q13592 Q11304 Q13476 Q13461 Q408 Q13472 Q13493
OR((Q5082186,P27,c(Q1048835)), (Q13573,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q5082186
relation P27
action find
entity Q13573
relation P47
type Q1048835
[ANSWERS] are Charles Rossiter Forwood an inhabitant of or are adjacent to Torroella de Montgrí
{'OR': [['Q5082186', 'P27', {'concept': 'Q1048835'}], ['Q13573', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q5082186 property:P27 ?o } UNION { resource:Q13573 property:P47 ?o } } . ?o rdf:type ontology:Q1048835 }
Ullà L'Escala Fontanilles Bellcaire d'Empordà Australia Gualta Pals
Ullà, L'Escala, Fontanilles, Bellcaire d'Empordà, Australia, Gualta and Pals are Charles Rossiter Forwood an inhabitant of or are adjacent to Torroella de Montgrí
Ullà L'Escala Fontanilles Bellcaire d'Empordà Australia Gualta Pals
action filter_type
action union
action find
entity Charles Rossiter Forwood
relation country of citizenship
action find
entity Torroella de Montgrí
relation shares border with
type political territorial entity
{'OR': [['Charles Rossiter Forwood', 'country of citizenship', {'concept': 'political territorial entity'}], ['Torroella de Montgrí', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Charles_Rossiter_Forwood property:country_of_citizenship ?o } UNION { resource:Torroella_de_Montgrí property:shares_border_with ?o } } . ?o rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q13592 Q11304 Q13476 Q13461 Q408 Q13472 Q13493
P47
Q1048835
USER
Which political territories are bordered by those ones ?
(c(Q1048835),P47,Q13592) (c(Q1048835),P47,Q11304) (c(Q1048835),P47,Q13476) (c(Q1048835),P47,Q13461) (c(Q1048835),P47,Q408) (c(Q1048835),P47,Q13472) (c(Q1048835),P47,Q13493)
action filter_type
action find
entity prev_answer
relation P47
type Q1048835
[{'concept': 'Q1048835'}, 'P47', 'Q13592'] [{'concept': 'Q1048835'}, 'P47', 'Q11304'] [{'concept': 'Q1048835'}, 'P47', 'Q13476'] [{'concept': 'Q1048835'}, 'P47', 'Q13461'] [{'concept': 'Q1048835'}, 'P47', 'Q408'] [{'concept': 'Q1048835'}, 'P47', 'Q13472'] [{'concept': 'Q1048835'}, 'P47', 'Q13493']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q1048835 . ?g property:P47 ?f . VALUES ( ?g ) { ( resource:Q13592 ) ( resource:Q11304 ) ( resource:Q13476 ) } }
Ullà L'Escala Fontanilles Bellcaire d'Empordà Australia Gualta Pals
action filter_type
action find
entity prev_answer
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Ullà'] [{'concept': 'political territorial entity'}, 'shares border with', "L'Escala"] [{'concept': 'political territorial entity'}, 'shares border with', 'Fontanilles'] [{'concept': 'political territorial entity'}, 'shares border with', "Bellcaire d'Empordà"] [{'concept': 'political territorial entity'}, 'shares border with', 'Australia'] [{'concept': 'political territorial entity'}, 'shares border with', 'Gualta'] [{'concept': 'political territorial entity'}, 'shares border with', 'Pals']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:political_territorial_entity . ?g property:shares_border_with ?f . VALUES ( ?g ) { ( resource:Ullà ) ( resource:L'Escala ) ( resource:Fontanilles ) } }
[]
political territorial entity
Q664 Q691 Q13476
SYSTEM
New Zealand, Papua New Guinea, Fontanilles
Q13476 Q13472 Q13461 Q13573 Q13571 Q11852 Q11200 Q13463 Q13461 Q13573 Q12151 Q11908 Q13472 Q13492 Q13493 Q13573 Q13589 Q13592 Q13571 Q13570 Q13463 Q13573 Q13592 Q13571 Q11304 Q5095 Q664 Q691 Q13476 Q13573 Q13592 Q13476 Q13462 Q13492 Q13573 Q13572 Q13519
(c(Q1048835),P47,Q13592) (c(Q1048835),P47,Q11304) (c(Q1048835),P47,Q13476) (c(Q1048835),P47,Q13461) (c(Q1048835),P47,Q408) (c(Q1048835),P47,Q13472) (c(Q1048835),P47,Q13493)
action filter_type
action find
entity prev_answer
relation P47
type Q1048835
[ANSWERS] are bordered by those ones
[{'concept': 'Q1048835'}, 'P47', 'Q13592'] [{'concept': 'Q1048835'}, 'P47', 'Q11304'] [{'concept': 'Q1048835'}, 'P47', 'Q13476'] [{'concept': 'Q1048835'}, 'P47', 'Q13461'] [{'concept': 'Q1048835'}, 'P47', 'Q408'] [{'concept': 'Q1048835'}, 'P47', 'Q13472'] [{'concept': 'Q1048835'}, 'P47', 'Q13493']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q1048835 . ?g property:P47 ?f . VALUES ( ?g ) { ( resource:Q13592 ) ( resource:Q11304 ) ( resource:Q13476 ) } }
Fontanilles Gualta Bellcaire d'Empordà Torroella de Montgrí La Tallada d'Empordà Sant Pere Pescador L'Armentera Albons Bellcaire d'Empordà Torroella de Montgrí Viladamat Ventalló Gualta Palau-sator Pals Torroella de Montgrí Ullastret Ullà La Tallada d'Empordà Serra de Daró Albons Torroella de Montgrí Ullà La Tallada d'Empordà L'Escala Papua New Zealand Papua New Guinea Fontanilles Torroella de Montgrí Ullà Fontanilles Begur Palau-sator Torroella de Montgrí Torrent Regencós
New Zealand, Papua New Guinea and Fontanilles are bordered by those ones
New Zealand Papua New Guinea Fontanilles
action filter_type
action find
entity prev_answer
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Ullà'] [{'concept': 'political territorial entity'}, 'shares border with', "L'Escala"] [{'concept': 'political territorial entity'}, 'shares border with', 'Fontanilles'] [{'concept': 'political territorial entity'}, 'shares border with', "Bellcaire d'Empordà"] [{'concept': 'political territorial entity'}, 'shares border with', 'Australia'] [{'concept': 'political territorial entity'}, 'shares border with', 'Gualta'] [{'concept': 'political territorial entity'}, 'shares border with', 'Pals']
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:political_territorial_entity . ?g property:shares_border_with ?f . VALUES ( ?g ) { ( resource:Ullà ) ( resource:L'Escala ) ( resource:Fontanilles ) } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q664 Q691 Q13476
P1001
Q12737077
USER
Which occupations have control over the jurisdiction of New Zealand, Papua New Guinea and Fontanilles ?
(c(Q12737077),P1001,Q664) (c(Q12737077),P1001,Q691) (c(Q12737077),P1001,Q13476)
action union
action filter_type
action find_reverse
entity Q664
relation P1001
type Q12737077
action filter_type
action find_reverse
entity Q691
relation P1001
type Q12737077
action filter_type
action find_reverse
entity Q13476
relation P1001
type Q12737077
[{'concept': 'Q12737077'}, 'P1001', 'Q664'] [{'concept': 'Q12737077'}, 'P1001', 'Q691'] [{'concept': 'Q12737077'}, 'P1001', 'Q13476']
SELECT DISTINCT ?l WHERE { ?l property:P1001 ?z . VALUES ( ?z ) { ( resource:Q691 ) ( resource:Q664 ) } }
New Zealand Papua New Guinea Fontanilles
action union
action filter_type
action find_reverse
entity New Zealand
relation applies to jurisdiction
type occupation
action filter_type
action find_reverse
entity Papua New Guinea
relation applies to jurisdiction
type occupation
action filter_type
action find_reverse
entity Fontanilles
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'New Zealand'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Papua New Guinea'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Fontanilles']
SELECT DISTINCT ?l WHERE { ?l property:applies_to_jurisdiction ?z . VALUES ( ?z ) { ( resource:Papua_New_Guinea ) ( resource:New_Zealand ) } }
[]
occupation
Q19571716 Q18145518 Q6866148
SYSTEM
Member of the Legislative Council of New Zealand, Member of the New Zealand House of Representatives, Minister of Foreign Affairs
Q6866129 Q19571716 Q18145518 Q6866081 Q4818600 Q5261068 Q14931517 Q6866227 Q1071117 Q6508547 Q6866148 Q6866167 Q21294916 Q1074656 Q26690866
(c(Q12737077),P1001,Q664) (c(Q12737077),P1001,Q691) (c(Q12737077),P1001,Q13476)
action union
action filter_type
action find_reverse
entity Q664
relation P1001
type Q12737077
action filter_type
action find_reverse
entity Q691
relation P1001
type Q12737077
action filter_type
action find_reverse
entity Q13476
relation P1001
type Q12737077
[ANSWERS] have control over the jurisdiction of New Zealand, Papua New Guinea and Fontanilles
[{'concept': 'Q12737077'}, 'P1001', 'Q664'] [{'concept': 'Q12737077'}, 'P1001', 'Q691'] [{'concept': 'Q12737077'}, 'P1001', 'Q13476']
SELECT DISTINCT ?l WHERE { ?l property:P1001 ?z . VALUES ( ?z ) { ( resource:Q691 ) ( resource:Q664 ) } }
New Zealand finance minister Member of the Legislative Council of New Zealand Member of the New Zealand House of Representatives Minister of Corrections Attorney-General Deputy Prime Minister of New Zealand Monarch of New Zealand Minister of Justice Prime Minister of New Zealand Leader of the Opposition Minister of Foreign Affairs Minister of Health Member of the Parliament of Papua New Guinea Prime Minister of Papua New Guinea mayor of Fontanillas
Member of the Legislative Council of New Zealand, Member of the New Zealand House of Representatives and Minister of Foreign Affairs have control over the jurisdiction of New Zealand, Papua New Guinea and Fontanilles
Member of the Legislative Council of New Zealand Member of the New Zealand House of Representatives Minister of Foreign Affairs
action union
action filter_type
action find_reverse
entity New Zealand
relation applies to jurisdiction
type occupation
action filter_type
action find_reverse
entity Papua New Guinea
relation applies to jurisdiction
type occupation
action filter_type
action find_reverse
entity Fontanilles
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'New Zealand'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Papua New Guinea'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Fontanilles']
SELECT DISTINCT ?l WHERE { ?l property:applies_to_jurisdiction ?z . VALUES ( ?z ) { ( resource:Papua_New_Guinea ) ( resource:New_Zealand ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q6866148
P17
Q1048835
USER
Which political territory is that occupation located in ?
(Q6866148,P17,c(Q1048835))
action filter_type
action find
entity Q6866148
relation P17
type Q1048835
['Q6866148', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q1048835 . resource:Q6866148 property:P17 ?n }
Minister of Foreign Affairs
action filter_type
action find
entity Minister of Foreign Affairs
relation country
type political territorial entity
['Minister of Foreign Affairs', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:political_territorial_entity . resource:Minister_of_Foreign_Affairs property:country ?n }
[]
political territorial entity
Clarification for simple ques.
Q18145518
SYSTEM
Did you mean Member of the New Zealand House of Representatives ?
Q19571716 Q18145518 Q6866148
(Q19571716,P17,c(Q1048835)) (Q18145518,P17,c(Q1048835)) (Q6866148,P17,c(Q1048835))
[ANSWER]
['Q19571716', 'P17', {'concept': 'Q1048835'}] ['Q18145518', 'P17', {'concept': 'Q1048835'}] ['Q6866148', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q1048835 . resource:Q6866148 property:P17 ?n }
Member of the Legislative Council of New Zealand Member of the New Zealand House of Representatives Minister of Foreign Affairs
Did you mean Member of the New Zealand House of Representatives ?
Member of the New Zealand House of Representatives
['Member of the Legislative Council of New Zealand', 'country', {'concept': 'political territorial entity'}] ['Member of the New Zealand House of Representatives', 'country', {'concept': 'political territorial entity'}] ['Minister of Foreign Affairs', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:political_territorial_entity . resource:Minister_of_Foreign_Affairs property:country ?n }
[]
Simple Question (Coreferenced)
USER
No, I meant Minister of Foreign Affairs. Could you tell me the answer for that?
(Q6866148,P17,c(Q1048835))
Q6866148
['Q6866148', 'P17', {'concept': 'Q1048835'}]
['Minister of Foreign Affairs', 'country', {'concept': 'political territorial entity'}]
[]
Q664
SYSTEM
New Zealand
Q664
(Q6866148,P17,c(Q1048835))
action filter_type
action find
entity Q6866148
relation P17
type Q1048835
Which political territory is that occupation located in
['Q6866148', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q1048835 . resource:Q6866148 property:P17 ?n }
New Zealand
Which political territory is that occupation located in
New Zealand
action filter_type
action find
entity Minister of Foreign Affairs
relation country
type political territorial entity
['Minister of Foreign Affairs', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:political_territorial_entity . resource:Minister_of_Foreign_Affairs property:country ?n }
[]