Simple Question (Direct)
Simple Question
Q4729104
P162
Q502895
USER
Which person is the produced of All My Friends Are Leaving Brisbane ?
(Q4729104,P162,c(Q502895))
action filter_type
action find
entity Q4729104
relation P162
type Q502895
['Q4729104', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q4729104 property:P162 ?o . ?o rdf:type ontology:Q502895 }
All My Friends Are Leaving Brisbane
action filter_type
action find
entity All My Friends Are Leaving Brisbane
relation producer
type common name
['All My Friends Are Leaving Brisbane', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:All_My_Friends_Are_Leaving_Brisbane property:producer ?o . ?o rdf:type ontology:common_name }
[]
common name
Q6688609
SYSTEM
Louise Alston
Q6688609
(Q4729104,P162,c(Q502895))
action filter_type
action find
entity Q4729104
relation P162
type Q502895
[ANSWER] is the produced of All My Friends Are Leaving Brisbane
['Q4729104', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q4729104 property:P162 ?o . ?o rdf:type ontology:Q502895 }
Louise Alston
Louise Alston is the produced of All My Friends Are Leaving Brisbane
Louise Alston
action filter_type
action find
entity All My Friends Are Leaving Brisbane
relation producer
type common name
['All My Friends Are Leaving Brisbane', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:All_My_Friends_Are_Leaving_Brisbane property:producer ?o . ?o rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6688609
P57
Q838948
USER
Which works of art are that person a director of ?
(c(Q838948),P57,Q6688609)
action filter_type
action find_reverse
entity Q6688609
relation P57
type Q838948
[{'concept': 'Q838948'}, 'P57', 'Q6688609']
SELECT DISTINCT ?x WHERE { ?x property:P57 resource:Q6688609 . ?x rdf:type ontology:Q838948 }
Louise Alston
action filter_type
action find_reverse
entity Louise Alston
relation director
type work of art
[{'concept': 'work of art'}, 'director', 'Louise Alston']
SELECT DISTINCT ?x WHERE { ?x property:director resource:Louise_Alston . ?x rdf:type ontology:work_of_art }
[]
work of art
Q6302017 Q4729104
SYSTEM
Jucy, All My Friends Are Leaving Brisbane
Q6302017 Q4729104
(c(Q838948),P57,Q6688609)
action filter_type
action find_reverse
entity Q6688609
relation P57
type Q838948
Jucy and All My Friends are Leaving Brisbane are that person a director of
[{'concept': 'Q838948'}, 'P57', 'Q6688609']
SELECT DISTINCT ?x WHERE { ?x property:P57 resource:Q6688609 . ?x rdf:type ontology:Q838948 }
Jucy All My Friends Are Leaving Brisbane
Jucy and All My Friends are Leaving Brisbane are that person a director of
Jucy All My Friends Are Leaving Brisbane
action filter_type
action find_reverse
entity Louise Alston
relation director
type work of art
[{'concept': 'work of art'}, 'director', 'Louise Alston']
SELECT DISTINCT ?x WHERE { ?x property:director resource:Louise_Alston . ?x rdf:type ontology:work_of_art }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q12163 Q4729104
P47 P495
Q1048835
USER
Which political territories are the origins of All My Friends Are Leaving Brisbane or share border with Vilamalla ?
OR((Q4729104,P495,c(Q1048835)), (Q12163,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q4729104
relation P495
action find
entity Q12163
relation P47
type Q1048835
{'OR': [['Q4729104', 'P495', {'concept': 'Q1048835'}], ['Q12163', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q12163 property:P47 ?o } UNION { resource:Q4729104 property:P495 ?o } } . ?o rdf:type ontology:Q1048835 }
Vilamalla All My Friends Are Leaving Brisbane
action filter_type
action union
action find
entity All My Friends Are Leaving Brisbane
relation country of origin
action find
entity Vilamalla
relation shares border with
type political territorial entity
{'OR': [['All My Friends Are Leaving Brisbane', 'country of origin', {'concept': 'political territorial entity'}], ['Vilamalla', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Vilamalla property:shares_border_with ?o } UNION { resource:All_My_Friends_Are_Leaving_Brisbane property:country_of_origin ?o } } . ?o rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q11242 Q11309 Q11314 Q11329 Q11858 Q408 Q29044
SYSTEM
Borrassà, El Far d'Empordà, Fortià, Garrigàs, Santa Llogaia d'Àlguema, Australia, Siurana
Q11242 Q11309 Q11314 Q11329 Q11858 Q408 Q29044
OR((Q4729104,P495,c(Q1048835)), (Q12163,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q4729104
relation P495
action find
entity Q12163
relation P47
type Q1048835
[ANSWERS] are the origins of All My Friends Are Leaving Brisbane or share border with Vilamalla
{'OR': [['Q4729104', 'P495', {'concept': 'Q1048835'}], ['Q12163', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q12163 property:P47 ?o } UNION { resource:Q4729104 property:P495 ?o } } . ?o rdf:type ontology:Q1048835 }
Borrassà El Far d'Empordà Fortià Garrigàs Santa Llogaia d'Àlguema Australia Siurana
Borrassà, El Far d'Empordà, Fortià, Garrigàs, Santa Llogaia d'Àlguema, Australia and Siurana are the origins of All My Friends Are Leaving Brisbane or share border with Vilamalla
Borrassà El Far d'Empordà Fortià Garrigàs Santa Llogaia d'Àlguema Australia Siurana
action filter_type
action union
action find
entity All My Friends Are Leaving Brisbane
relation country of origin
action find
entity Vilamalla
relation shares border with
type political territorial entity
{'OR': [['All My Friends Are Leaving Brisbane', 'country of origin', {'concept': 'political territorial entity'}], ['Vilamalla', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Vilamalla property:shares_border_with ?o } UNION { resource:All_My_Friends_Are_Leaving_Brisbane property:country_of_origin ?o } } . ?o rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q25228
P17
Q1048835 Q811979 Q14524493
USER
Which political territories do lesser number of architectural structures or terrains belong to than Anguilla ?
(c(Q811979)|c(Q14524493),P17,c(Q1048835))
action less
action union
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q811979
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q14524493
action count
action filter_multi_types
action find_reverse
entity Q25228
relation P17
type Q811979
type Q14524493
[[{'concept': 'Q811979'}, {'concept': 'Q14524493'}], 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?v ) ?z WHERE { { ?g property:P17 ?z . ?g rdf:type ontology:Q811979 . ?z rdf:type ontology:Q1048835 } UNION { ?g property:P17 ?z . ?z rdf:type ontology:Q1048835 . ?g rdf:type ontology:Q14524493 } } GROUP BY ?z } . FILTER ( ?v < ?q ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { { ?t rdf:type ?r . VALUES ( ?r ) { ( ontology:Q811979 ) ( ontology:Q14524493 ) } } . ?t property:P17 resource:Q25228 } } }
Anguilla
action less
action union
action find_reverse_tuple_counts
relation country
type political territorial entity
type architectural structure
action find_reverse_tuple_counts
relation country
type political territorial entity
type terrain
action count
action filter_multi_types
action find_reverse
entity Anguilla
relation country
type architectural structure
type terrain
[[{'concept': 'architectural structure'}, {'concept': 'terrain'}], 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?v ) ?z WHERE { { ?g property:country ?z . ?g rdf:type ontology:architectural_structure . ?z rdf:type ontology:political_territorial_entity } UNION { ?g property:country ?z . ?z rdf:type ontology:political_territorial_entity . ?g rdf:type ontology:terrain } } GROUP BY ?z } . FILTER ( ?v < ?q ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { { ?t rdf:type ?r . VALUES ( ?r ) { ( ontology:architectural_structure ) ( ontology:terrain ) } } . ?t property:country resource:Anguilla } } }
[]
political territorial entity architectural structure terrain
Q5705 Q231 Q21590062
SYSTEM
Catalonia, Walloon Region, Antarctic Treaty area
Q193714 Q195972 Q21590062 Q746558 Q838261 Q193619 Q699964 Q13767 Q34617 Q22880 Q641138 Q693551 Q848383 Q5705 Q13726 Q953068 Q38610 Q3405693 Q1054923 Q13862 Q79965 Q223793 Q319376 Q13869 Q407199 Q2002138 Q3899 Q35672 Q1747689 Q231 Q234 Q2991382 Q168651 Q399702 Q208279 Q1615455 Q31747 Q129286
(c(Q811979)|c(Q14524493),P17,c(Q1048835))
action less
action union
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q811979
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q14524493
action count
action filter_multi_types
action find_reverse
entity Q25228
relation P17
type Q811979
type Q14524493
[ANSWERS] lesser number of architectural structures or terrains belong to than Anguilla
[[{'concept': 'Q811979'}, {'concept': 'Q14524493'}], 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?v ) ?z WHERE { { ?g property:P17 ?z . ?g rdf:type ontology:Q811979 . ?z rdf:type ontology:Q1048835 } UNION { ?g property:P17 ?z . ?z rdf:type ontology:Q1048835 . ?g rdf:type ontology:Q14524493 } } GROUP BY ?z } . FILTER ( ?v < ?q ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { { ?t rdf:type ?r . VALUES ( ?r ) { ( ontology:Q811979 ) ( ontology:Q14524493 ) } } . ?t property:P17 resource:Q25228 } } }
Mandatory Palestine Kingdom of Kartli Antarctic Treaty area Emirate of Bukhara Federal Republic of Yugoslavia Union of South Africa Archduchy of Austria Camarines Sur Saint Pierre and Miquelon Electoral Palatinate Duchy of Cleves Landgraviate of Hesse-Darmstadt Duchy of Rome Catalonia Albay South-West Africa Dominion of Newfoundland Sark British Hong Kong Negros Occidental Golden Horde Kingdom of Etruria Hanau-Münzenberg Palawan Palestinian territories Equador, Rio Grande do Norte Kalimantan Timur Pitcairn Islands Ancient Rome Walloon Region Flemish Region County of Provence Landgraviate of Hesse-Kassel Agüimes, Las Palmas Highland Duchy of Mirandola Irish Free State British Raj
Catalonia, Walloon Region and Antarctic Treaty area lesser number of architectural structures or terrains belong to than Anguilla
Catalonia Walloon Region Antarctic Treaty area
action less
action union
action find_reverse_tuple_counts
relation country
type political territorial entity
type architectural structure
action find_reverse_tuple_counts
relation country
type political territorial entity
type terrain
action count
action filter_multi_types
action find_reverse
entity Anguilla
relation country
type architectural structure
type terrain
[[{'concept': 'architectural structure'}, {'concept': 'terrain'}], 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?v ) ?z WHERE { { ?g property:country ?z . ?g rdf:type ontology:architectural_structure . ?z rdf:type ontology:political_territorial_entity } UNION { ?g property:country ?z . ?z rdf:type ontology:political_territorial_entity . ?g rdf:type ontology:terrain } } GROUP BY ?z } . FILTER ( ?v < ?q ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { { ?t rdf:type ?r . VALUES ( ?r ) { ( ontology:architectural_structure ) ( ontology:terrain ) } } . ?t property:country resource:Anguilla } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q664
P17
Q1048835 Q811979 Q14524493
USER
And what about New Zealand?
(c(Q811979)|c(Q14524493),P17,c(Q1048835))
action less
action union
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q811979
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q14524493
action count
action filter_multi_types
action find_reverse
entity Q664
relation P17
type Q811979
type Q14524493
[[{'concept': 'Q811979'}, {'concept': 'Q14524493'}], 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) ?w WHERE { { ?z property:P17 ?w . ?w rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q811979 } UNION { ?w rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q14524493 . ?z property:P17 ?w } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?s ) WHERE { ?r property:P17 resource:Q664 . { ?r rdf:type ?d . VALUES ( ?d ) { ( ontology:Q811979 ) ( ontology:Q14524493 ) } } } } . FILTER ( ?q < ?s ) }
New Zealand
action less
action union
action find_reverse_tuple_counts
relation country
type political territorial entity
type architectural structure
action find_reverse_tuple_counts
relation country
type political territorial entity
type terrain
action count
action filter_multi_types
action find_reverse
entity New Zealand
relation country
type architectural structure
type terrain
[[{'concept': 'architectural structure'}, {'concept': 'terrain'}], 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) ?w WHERE { { ?z property:country ?w . ?w rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:architectural_structure } UNION { ?w rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:terrain . ?z property:country ?w } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?s ) WHERE { ?r property:country resource:New_Zealand . { ?r rdf:type ?d . VALUES ( ?d ) { ( ontology:architectural_structure ) ( ontology:terrain ) } } } } . FILTER ( ?q < ?s ) }
[]
political territorial entity architectural structure terrain
Q5705 Q1000 Q769
SYSTEM
Catalonia, Gabon, Grenada
Q193714 Q1000 Q195972 Q21590062 Q746558 Q838261 Q785 Q193619 Q769 Q685 Q699964 Q763 Q13767 Q34617 Q22880 Q9676 Q641138 Q693551 Q13353 Q766 Q848383 Q5705 Q13726 Q953068 Q5785 Q38610 Q3405693 Q1054923 Q13862 Q79965 Q223793 Q319376 Q13869 Q407199 Q18221 Q778 Q2002138 Q3899 Q35672 Q25228 Q1747689 Q781 Q691 Q757 Q9648 Q231 Q234 Q2991382 Q168651 Q399702 Q35086 Q23635 Q208279 Q192184 Q1615455 Q31747 Q25305 Q129286
(c(Q811979)|c(Q14524493),P17,c(Q1048835))
action less
action union
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q811979
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q14524493
action count
action filter_multi_types
action find_reverse
entity Q664
relation P17
type Q811979
type Q14524493
[ANSWERS]
[[{'concept': 'Q811979'}, {'concept': 'Q14524493'}], 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) ?w WHERE { { ?z property:P17 ?w . ?w rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q811979 } UNION { ?w rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q14524493 . ?z property:P17 ?w } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?s ) WHERE { ?r property:P17 resource:Q664 . { ?r rdf:type ?d . VALUES ( ?d ) { ( ontology:Q811979 ) ( ontology:Q14524493 ) } } } } . FILTER ( ?q < ?s ) }
Mandatory Palestine Gabon Kingdom of Kartli Antarctic Treaty area Emirate of Bukhara Federal Republic of Yugoslavia Jersey Union of South Africa Grenada Solomon Islands Archduchy of Austria Saint Kitts and Nevis Camarines Sur Saint Pierre and Miquelon Electoral Palatinate Isle of Man Duchy of Cleves Landgraviate of Hesse-Darmstadt Montserrat Jamaica Duchy of Rome Catalonia Albay South-West Africa Cayman Islands Dominion of Newfoundland Sark British Hong Kong Negros Occidental Golden Horde Kingdom of Etruria Hanau-Münzenberg Palawan Palestinian territories Turks and Caicos Islands The Bahamas Equador, Rio Grande do Norte Kalimantan Timur Pitcairn Islands Anguilla Ancient Rome Antigua and Barbuda Papua New Guinea Saint Vincent and the Grenadines Falkland Islands Walloon Region Flemish Region County of Provence Landgraviate of Hesse-Kassel Agüimes, Las Palmas South Georgia and the South Sandwich Islands Bermuda Highland Saint Helena, Ascension and Tristan da Cunha Duchy of Mirandola Irish Free State British Virgin Islands British Raj
Catalonia Gabon Grenada
action less
action union
action find_reverse_tuple_counts
relation country
type political territorial entity
type architectural structure
action find_reverse_tuple_counts
relation country
type political territorial entity
type terrain
action count
action filter_multi_types
action find_reverse
entity New Zealand
relation country
type architectural structure
type terrain
[[{'concept': 'architectural structure'}, {'concept': 'terrain'}], 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) ?w WHERE { { ?z property:country ?w . ?w rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:architectural_structure } UNION { ?w rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:terrain . ?z property:country ?w } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?s ) WHERE { ?r property:country resource:New_Zealand . { ?r rdf:type ?d . VALUES ( ?d ) { ( ontology:architectural_structure ) ( ontology:terrain ) } } } } . FILTER ( ?q < ?s ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q574
P530
Q15617994 Q1048835
USER
How many administrative territories have diplomatic relations with approximately the same number of political territories as East Timor ?
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q574
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?d ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?t ) AS ?i ) WHERE { ?f property:P530 ?t . ?f rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q1048835 } GROUP BY ?f } . FILTER ( ?i = ?x ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?x ) WHERE { resource:Q574 property:P530 ?v . ?v rdf:type ontology:Q15617994 } } }
East Timor
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity East Timor
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?d ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?t ) AS ?i ) WHERE { ?f property:diplomatic_relation ?t . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:political_territorial_entity } GROUP BY ?f } . FILTER ( ?i = ?x ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?x ) WHERE { resource:East_Timor property:diplomatic_relation ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
72
Q702 Q262 Q265 Q37 Q712 Q717 Q837 Q657 Q792 Q958 Q986 Q822 Q241 Q242 Q244 Q32 Q929 Q983 Q29999 Q854 Q819 Q424 Q730 Q230 Q232 Q238 Q1045 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q184 Q228 Q227 Q222 Q221 Q1037 Q974 Q1032 Q191 Q965 Q967 Q962 Q697 Q695 Q754 Q211 Q217 Q214 Q912 Q917 Q1007 Q1006 Q1005 Q977 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q948 Q817 Q1019 Q1016 Q1011 Q945 Q678 Q33788
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q574
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?d ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?t ) AS ?i ) WHERE { ?f property:P530 ?t . ?f rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q1048835 } GROUP BY ?f } . FILTER ( ?i = ?x ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?x ) WHERE { resource:Q574 property:P530 ?v . ?v rdf:type ontology:Q15617994 } } }
Federated States of Micronesia Algeria Uzbekistan Lithuania Fiji Venezuela Nepal Chad El Salvador South Sudan Eritrea Lebanon Cuba Belize Barbados Luxembourg Central African Republic Equatorial Guinea Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Georgia Kazakhstan San Marino Somalia Hungary Brunei Sudan Mauritius Malawi Iceland Belarus Andorra Azerbaijan Albania Republic of Macedonia Rwanda Democratic Republic of the Congo Niger Estonia Burkina Faso Burundi Benin Nauru Palau Trinidad and Tobago Latvia Republic of Moldova Slovakia Mali Bhutan Guinea-Bissau Guinea Gambia Djibouti Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Tunisia Kuwait Madagascar Libya Cape Verde Togo Tonga New Caledonia
72
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity East Timor
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?d ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?t ) AS ?i ) WHERE { ?f property:diplomatic_relation ?t . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:political_territorial_entity } GROUP BY ?f } . FILTER ( ?i = ?x ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?x ) WHERE { resource:East_Timor property:diplomatic_relation ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q25228
P276
Q56061
USER
What is situated at Anguilla ?
(c(Q56061),P276,Q25228)
action filter_type
action find_reverse
entity Q25228
relation P276
type Q56061
[{'concept': 'Q56061'}, 'P276', 'Q25228']
SELECT DISTINCT ?b WHERE { ?b property:P276 resource:Q25228 . ?b rdf:type ontology:Q56061 }
Anguilla
action filter_type
action find_reverse
entity Anguilla
relation location
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'location', 'Anguilla']
SELECT DISTINCT ?b WHERE { ?b property:location resource:Anguilla . ?b rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q18455918
SYSTEM
district of Anguilla
Q18455918
(c(Q56061),P276,Q25228)
action filter_type
action find_reverse
entity Q25228
relation P276
type Q56061
In [ANSWER] is situated at Anguilla
[{'concept': 'Q56061'}, 'P276', 'Q25228']
SELECT DISTINCT ?b WHERE { ?b property:P276 resource:Q25228 . ?b rdf:type ontology:Q56061 }
district of Anguilla
In district of Anguilla is situated at Anguilla
district of Anguilla
action filter_type
action find_reverse
entity Anguilla
relation location
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'location', 'Anguilla']
SELECT DISTINCT ?b WHERE { ?b property:location resource:Anguilla . ?b rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q25228
P6
Q502895
USER
Which person is the head of government of that political territory ?
(Q18455918,P6,c(Q502895))
action filter_type
action find
entity Q25228
relation P6
type Q502895
['Q18455918', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q25228 property:P6 ?l . ?l rdf:type ontology:Q502895 }
Anguilla
action filter_type
action find
entity Anguilla
relation head of government
type common name
['district of Anguilla', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:Anguilla property:head_of_government ?l . ?l rdf:type ontology:common_name }
[]
common name
Q19831099
SYSTEM
Victor Banks
Q19831099
(Q18455918,P6,c(Q502895))
action filter_type
action find
entity Q25228
relation P6
type Q502895
[ANSWER] is the head of government of that political territory
['Q18455918', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q25228 property:P6 ?l . ?l rdf:type ontology:Q502895 }
Victor Banks
Victor Banks is the head of government of that political territory
Victor Banks
action filter_type
action find
entity Anguilla
relation head of government
type common name
['district of Anguilla', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:Anguilla property:head_of_government ?l . ?l rdf:type ontology:common_name }
[]