Simple Question (Direct)
Simple Question
Q6234194
P21
Q290
USER
Which sex does John Freeman Loutit possess ?
(Q6234194,P21,c(Q290))
action filter_type
action find
entity Q6234194
relation P21
type Q290
['Q6234194', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?g WHERE { resource:Q6234194 property:P21 ?g . ?g rdf:type ontology:Q290 }
John Freeman Loutit
action filter_type
action find
entity John Freeman Loutit
relation gender
type sex
['John Freeman Loutit', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?g WHERE { resource:John_Freeman_Loutit property:gender ?g . ?g rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q6234194,P21,c(Q290))
action filter_type
action find
entity Q6234194
relation P21
type Q290
John Freeman Loutit possesses un [ANSWER]
['Q6234194', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?g WHERE { resource:Q6234194 property:P21 ?g . ?g rdf:type ontology:Q290 }
male
John Freeman Loutit possesses un male
male
action filter_type
action find
entity John Freeman Loutit
relation gender
type sex
['John Freeman Loutit', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?g WHERE { resource:John_Freeman_Loutit property:gender ?g . ?g rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6234194
P27
Q1048835
USER
Which political territory is that person an inhabitant of ?
(Q6581097,P27,c(Q1048835))
action filter_type
action find
entity Q6234194
relation P27
type Q1048835
['Q6581097', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?k WHERE { resource:Q6234194 property:P27 ?k . ?k rdf:type ontology:Q1048835 }
John Freeman Loutit
action filter_type
action find
entity John Freeman Loutit
relation country of citizenship
type political territorial entity
['male', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:John_Freeman_Loutit property:country_of_citizenship ?k . ?k rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q408
SYSTEM
Australia
Q408
(Q6581097,P27,c(Q1048835))
action filter_type
action find
entity Q6234194
relation P27
type Q1048835
[ANSWER] is that person an inhabitant of
['Q6581097', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?k WHERE { resource:Q6234194 property:P27 ?k . ?k rdf:type ontology:Q1048835 }
Australia
Australia is that person an inhabitant of
Australia
action filter_type
action find
entity John Freeman Loutit
relation country of citizenship
type political territorial entity
['male', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:John_Freeman_Loutit property:country_of_citizenship ?k . ?k rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P463
Q484652 Q43229
USER
How many international organizations and organizations were that political territory a member of ?
(Q408,P463,c(Q484652)) (Q408,P463,c(Q43229)) (Q408,P463,c(Q484652)) (Q408,P463,c(Q43229))
action count
action union
action filter_type
action find
entity Q408
relation P463
type Q484652
action filter_type
action find
entity Q408
relation P463
type Q43229
['Q408', 'P463', {'concept': 'Q484652'}] ['Q408', 'P463', {'concept': 'Q43229'}] ['Q408', 'P463', {'concept': 'Q484652'}] ['Q408', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) WHERE { VALUES ( ?c ) { ( ontology:Q484652 ) ( ontology:Q43229 ) } . ?d rdf:type ?c }
action count
action union
action filter_type
action find
entity Australia
relation member of
type international organization
action filter_type
action find
entity Australia
relation member of
type organization
['Australia', 'member of', {'concept': 'international organization'}] ['Australia', 'member of', {'concept': 'organization'}] ['Australia', 'member of', {'concept': 'international organization'}] ['Australia', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) WHERE { VALUES ( ?c ) { ( ontology:international_organization ) ( ontology:organization ) } . ?d rdf:type ?c }
[]
international organization organization
SYSTEM
6 international organizations and 10 organizations
Q191384 Q309195 Q1065 Q41550 Q656801 Q19771 Q899770 Q7768 Q488981 Q7785 Q188822 Q82151 Q827525 Q7825 Q170481 Q1043527
(Q408,P463,c(Q484652)) (Q408,P463,c(Q43229)) (Q408,P463,c(Q484652)) (Q408,P463,c(Q43229))
action count
action union
action filter_type
action find
entity Q408
relation P463
type Q484652
action filter_type
action find
entity Q408
relation P463
type Q43229
[ANSWER]
['Q408', 'P463', {'concept': 'Q484652'}] ['Q408', 'P463', {'concept': 'Q43229'}] ['Q408', 'P463', {'concept': 'Q484652'}] ['Q408', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) WHERE { VALUES ( ?c ) { ( ontology:Q484652 ) ( ontology:Q43229 ) } . ?d rdf:type ?c }
International Bank for Reconstruction and Development Bank for International Settlements United Nations Organisation for Economic Co-operation and Development International Finance Corporation G20 International Centre for Settlement of Investment Disputes ASEAN European Bank for Reconstruction and Development Commonwealth of Nations Asian Development Bank Food and Agriculture Organization of the United Nations International Development Association World Trade Organization Asia-Pacific Economic Cooperation Multilateral Investment Guarantee Agency
6 international organizations and 10 organizations
action count
action union
action filter_type
action find
entity Australia
relation member of
type international organization
action filter_type
action find
entity Australia
relation member of
type organization
['Australia', 'member of', {'concept': 'international organization'}] ['Australia', 'member of', {'concept': 'organization'}] ['Australia', 'member of', {'concept': 'international organization'}] ['Australia', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?b ) WHERE { VALUES ( ?c ) { ( ontology:international_organization ) ( ontology:organization ) } . ?d rdf:type ?c }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q408
P47
Q15617994 Q1048835
USER
How many administrative territories and political territories have a shared border with Australia ?
(Q408,P47,c(Q15617994)) (Q408,P47,c(Q1048835))
action count
action union
action filter_type
action find
entity Q408
relation P47
type Q15617994
action filter_type
action find
entity Q408
relation P47
type Q1048835
['Q408', 'P47', {'concept': 'Q15617994'}] ['Q408', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?w ) WHERE { VALUES ( ?h ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } . ?j rdf:type ?h }
Australia
action count
action union
action filter_type
action find
entity Australia
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Australia
relation shares border with
type political territorial entity
['Australia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Australia', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?w ) WHERE { VALUES ( ?h ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } . ?j rdf:type ?h }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
1 administrative territories and 3 political territories
Q664 Q252 Q5095 Q691
(Q408,P47,c(Q15617994)) (Q408,P47,c(Q1048835))
action count
action union
action filter_type
action find
entity Q408
relation P47
type Q15617994
action filter_type
action find
entity Q408
relation P47
type Q1048835
[ANSWER]
['Q408', 'P47', {'concept': 'Q15617994'}] ['Q408', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?w ) WHERE { VALUES ( ?h ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } . ?j rdf:type ?h }
New Zealand Indonesia Papua Papua New Guinea
1 administrative territories and 3 political territories
action count
action union
action filter_type
action find
entity Australia
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Australia
relation shares border with
type political territorial entity
['Australia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Australia', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?w ) WHERE { VALUES ( ?h ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } . ?j rdf:type ?h }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q408
P30
Q2221906
USER
Which geographic locations are Australia situated in ?
(Q408,P30,c(Q2221906))
action filter_type
action find
entity Q408
relation P30
type Q2221906
['Q408', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?p WHERE { resource:Q408 property:P30 ?p . ?p rdf:type ontology:Q2221906 }
Australia
action filter_type
action find
entity Australia
relation continent
type geographic location
['Australia', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?p WHERE { resource:Australia property:continent ?p . ?p rdf:type ontology:geographic_location }
[]
geographic location
Q3960 Q538
SYSTEM
Australia, Oceania
Q3960 Q538
(Q408,P30,c(Q2221906))
action filter_type
action find
entity Q408
relation P30
type Q2221906
Australia are situated in [ANSWERS]
['Q408', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?p WHERE { resource:Q408 property:P30 ?p . ?p rdf:type ontology:Q2221906 }
Australia Oceania
Australia are situated in Australia and Oceania
Australia Oceania
action filter_type
action find
entity Australia
relation continent
type geographic location
['Australia', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?p WHERE { resource:Australia property:continent ?p . ?p rdf:type ontology:geographic_location }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q3960 Q538
P30
Q14524493
USER
Which terrains are included in those geographic locations ?
(c(Q14524493),P30,Q3960) (c(Q14524493),P30,Q538)
action filter_type
action find_reverse
entity prev_answer
relation P30
type Q14524493
[{'concept': 'Q14524493'}, 'P30', 'Q3960'] [{'concept': 'Q14524493'}, 'P30', 'Q538']
SELECT DISTINCT ?t WHERE { ?t property:P30 ?y . ?t rdf:type ontology:Q14524493 . VALUES ( ?y ) { ( resource:Q3960 ) ( resource:Q538 ) } }
Australia Oceania
action filter_type
action find_reverse
entity prev_answer
relation continent
type terrain
[{'concept': 'terrain'}, 'continent', 'Australia'] [{'concept': 'terrain'}, 'continent', 'Oceania']
SELECT DISTINCT ?t WHERE { ?t property:continent ?y . ?t rdf:type ontology:terrain . VALUES ( ?y ) { ( resource:Australia ) ( resource:Oceania ) } }
[]
terrain
Q178167 Q5059 Q131230
SYSTEM
Mount Kosciuszko, Mount Cook, Mauna Kea
Q747182 Q1330376 Q178167 Q5059 Q791 Q1226878 Q6356681 Q3056587 Q512465 Q1549756 Q498069 Q1542459 Q277441 Q2114101 Q1361458 Q396730 Q1236265 Q4380977 Q1147814 Q478663 Q1513944 Q264862 Q2667931 Q403083 Q207284 Q850051 Q131230 Q3045211 Q1191219 Q1320298 Q1045888 Q1827535 Q760819 Q3321642 Q538601 Q122795 Q1945432
(c(Q14524493),P30,Q3960) (c(Q14524493),P30,Q538)
action filter_type
action find_reverse
entity prev_answer
relation P30
type Q14524493
Are [ANSWERS] are included in those geographic locations
[{'concept': 'Q14524493'}, 'P30', 'Q3960'] [{'concept': 'Q14524493'}, 'P30', 'Q538']
SELECT DISTINCT ?t WHERE { ?t property:P30 ?y . ?t rdf:type ontology:Q14524493 . VALUES ( ?y ) { ( resource:Q3960 ) ( resource:Q538 ) } }
Mount Ossa Mount Bartle Frere Mount Kosciuszko Mount Cook Taumatawhakatangihangakoauauotamateapokaiwhenuakitanatahu Lata Mountain Pawala Valley Ridge Northwest Rota Mont Orohena Mont Puke Te Manga Mount Tabwemasana Mount Wilhelm Mawson Peak Mount Bates Agrigan Dolohmwar Mount Lamlam Silisili Alamagan Mount Tomanivi Tavurvur Command Ridge Ahyi Mount Ruapehu Mount Taranaki Mauna Kea Fukutoku-Okanoba Mount Ngerchelchuus Rabaul caldera Puncak Jaya Poike Mount Popomanaseu Adams Seamount Terevaka Mount Tongariro Mont Panié
Are Mount Kosciuszko, Mount Cook and Mauna Kea are included in those geographic locations
Mount Kosciuszko Mount Cook Mauna Kea
action filter_type
action find_reverse
entity prev_answer
relation continent
type terrain
[{'concept': 'terrain'}, 'continent', 'Australia'] [{'concept': 'terrain'}, 'continent', 'Oceania']
SELECT DISTINCT ?t WHERE { ?t property:continent ?y . ?t rdf:type ontology:terrain . VALUES ( ?y ) { ( resource:Australia ) ( resource:Oceania ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q408
P291
Q2342494
USER
Which collectable has Australia as its release location ?
(c(Q2342494),P291,Q408)
action filter_type
action find_reverse
entity Q408
relation P291
type Q2342494
[{'concept': 'Q2342494'}, 'P291', 'Q408']
SELECT DISTINCT ?e WHERE { ?e property:P291 resource:Q408 . ?e rdf:type ontology:Q2342494 }
Australia
action filter_type
action find_reverse
entity Australia
relation place of publication
type collectable
[{'concept': 'collectable'}, 'place of publication', 'Australia']
SELECT DISTINCT ?e WHERE { ?e property:place_of_publication resource:Australia . ?e rdf:type ontology:collectable }
[]
collectable
Q4638653
SYSTEM
48 Shades of Brown
Q4638653
(c(Q2342494),P291,Q408)
action filter_type
action find_reverse
entity Q408
relation P291
type Q2342494
[ANSWER] has Australia as its release location
[{'concept': 'Q2342494'}, 'P291', 'Q408']
SELECT DISTINCT ?e WHERE { ?e property:P291 resource:Q408 . ?e rdf:type ontology:Q2342494 }
48 Shades of Brown
48 Shades of Brown has Australia as its release location
48 Shades of Brown
action filter_type
action find_reverse
entity Australia
relation place of publication
type collectable
[{'concept': 'collectable'}, 'place of publication', 'Australia']
SELECT DISTINCT ?e WHERE { ?e property:place_of_publication resource:Australia . ?e rdf:type ontology:collectable }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q408
P921
Q571
USER
Which book has Australia as its principal topic ?
(c(Q571),P921,Q408)
action filter_type
action find_reverse
entity Q408
relation P921
type Q571
[{'concept': 'Q571'}, 'P921', 'Q408']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q571 . ?n property:P921 resource:Q408 }
Australia
action filter_type
action find_reverse
entity Australia
relation main subject
type book
[{'concept': 'book'}, 'main subject', 'Australia']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:book . ?n property:main_subject resource:Australia }
[]
book
Q19039311
SYSTEM
An account of a voyage to establish a colony at Port Philip in Bass's Strait on the south coast of New South Wales
Q19039311
(c(Q571),P921,Q408)
action filter_type
action find_reverse
entity Q408
relation P921
type Q571
[ANSWER] has Australia as its principal topic
[{'concept': 'Q571'}, 'P921', 'Q408']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q571 . ?n property:P921 resource:Q408 }
An account of a voyage to establish a colony at Port Philip in Bass's Strait on the south coast of New South Wales
An account of a voyage to establish a colony at Port Philip in Bass's Strait on the south coast of New South Wales has Australia as its principal topic
An account of a voyage to establish a colony at Port Philip in Bass's Strait on the south coast of New South Wales
action filter_type
action find_reverse
entity Australia
relation main subject
type book
[{'concept': 'book'}, 'main subject', 'Australia']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:book . ?n property:main_subject resource:Australia }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q408
P1344
Q198
USER
What wars did Australia participate in ?
(Q408,P1344,c(Q198))
action filter_type
action find
entity Q408
relation P1344
type Q198
['Q408', 'P1344', {'concept': 'Q198'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q198 . resource:Q408 property:P1344 ?w }
Australia
action filter_type
action find
entity Australia
relation participant of
type war
['Australia', 'participant of', {'concept': 'war'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:war . resource:Australia property:participant_of ?w }
[]
war
Q545449 Q17507684 Q79911
SYSTEM
Iraq War, military intervention against ISIL, Russian Civil War
Q17507684 Q545449 Q362 Q79911 Q361
(Q408,P1344,c(Q198))
action filter_type
action find
entity Q408
relation P1344
type Q198
Australia participated in [ANSWERS]
['Q408', 'P1344', {'concept': 'Q198'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q198 . resource:Q408 property:P1344 ?w }
military intervention against ISIL Iraq War World War II Russian Civil War World War I
Australia participated in Iraq War, military intervention against ISIL and Russian Civil War
Iraq War military intervention against ISIL Russian Civil War
action filter_type
action find
entity Australia
relation participant of
type war
['Australia', 'participant of', {'concept': 'war'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:war . resource:Australia property:participant_of ?w }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3296711
Q198
USER
And also tell me about José Castillo?
(Q3296711,P1344,c(Q198))
action filter_type
action find
entity Q3296711
relation P1344
type Q198
['Q3296711', 'P1344', {'concept': 'Q198'}]
SELECT DISTINCT ?h WHERE { resource:Q3296711 property:P1344 ?h . ?h rdf:type ontology:Q198 }
José Castillo
action filter_type
action find
entity José Castillo
relation participant of
type war
['José Castillo', 'participant of', {'concept': 'war'}]
SELECT DISTINCT ?h WHERE { resource:José_Castillo property:participant_of ?h . ?h rdf:type ontology:war }
[]
war
Q10859
SYSTEM
Spanish Civil War
Q10859
(Q3296711,P1344,c(Q198))
action filter_type
action find
entity Q3296711
relation P1344
type Q198
[ANSWER]
['Q3296711', 'P1344', {'concept': 'Q198'}]
SELECT DISTINCT ?h WHERE { resource:Q3296711 property:P1344 ?h . ?h rdf:type ontology:Q198 }
Spanish Civil War
Spanish Civil War
action filter_type
action find
entity José Castillo
relation participant of
type war
['José Castillo', 'participant of', {'concept': 'war'}]
SELECT DISTINCT ?h WHERE { resource:José_Castillo property:participant_of ?h . ?h rdf:type ontology:war }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3296711
P102
Q7278
USER
Which political party is that person a member of ?
(Q10859,P102,c(Q7278))
action filter_type
action find
entity Q3296711
relation P102
type Q7278
['Q10859', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?g WHERE { resource:Q3296711 property:P102 ?g . ?g rdf:type ontology:Q7278 }
José Castillo
action filter_type
action find
entity José Castillo
relation member of political party
type political party
['Spanish Civil War', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?g WHERE { resource:José_Castillo property:member_of_political_party ?g . ?g rdf:type ontology:political_party }
[]
political party
Q138198
SYSTEM
Spanish Socialist Workers' Party
Q138198
(Q10859,P102,c(Q7278))
action filter_type
action find
entity Q3296711
relation P102
type Q7278
[ANSWER] is that person a member of
['Q10859', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?g WHERE { resource:Q3296711 property:P102 ?g . ?g rdf:type ontology:Q7278 }
Spanish Socialist Workers' Party
Spanish Socialist Workers' Party is that person a member of
Spanish Socialist Workers' Party
action filter_type
action find
entity José Castillo
relation member of political party
type political party
['Spanish Civil War', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?g WHERE { resource:José_Castillo property:member_of_political_party ?g . ?g rdf:type ontology:political_party }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q138198 Q6638313 Q2807
P159
Q56061
USER
Does that political party have the principal seat at List of settlements on Christmas Island and Madrid ?
(Q138198,P159,Q6638313) (Q138198,P159,Q2807)
action is_in
entity Q138198
action intersection
action find_reverse
entity Q6638313
relation P159
action find_reverse
entity Q2807
relation P159
['Q138198', 'P159', 'Q6638313'] ['Q138198', 'P159', 'Q2807']
ASK WHERE { resource:Q138198 property:P159 resource:Q6638313 . resource:Q138198 property:P159 resource:Q2807 }
Spanish Socialist Workers' Party List of settlements on Christmas Island Madrid
action is_in
entity Spanish Socialist Workers' Party
action intersection
action find_reverse
entity List of settlements on Christmas Island
relation headquarters location
action find_reverse
entity Madrid
relation headquarters location
["Spanish Socialist Workers' Party", 'headquarters location', 'List of settlements on Christmas Island'] ["Spanish Socialist Workers' Party", 'headquarters location', 'Madrid']
ASK WHERE { resource:Spanish_Socialist_Workers'_Party property:headquarters_location resource:List_of_settlements_on_Christmas_Island . resource:Spanish_Socialist_Workers'_Party property:headquarters_location resource:Madrid }
[]
administrative territorial entity
SYSTEM
NO and YES respectively
(Q138198,P159,Q6638313) (Q138198,P159,Q2807)
action is_in
entity Q138198
action intersection
action find_reverse
entity Q6638313
relation P159
action find_reverse
entity Q2807
relation P159
[ANSWER]
['Q138198', 'P159', 'Q6638313'] ['Q138198', 'P159', 'Q2807']
ASK WHERE { resource:Q138198 property:P159 resource:Q6638313 . resource:Q138198 property:P159 resource:Q2807 }
NO and YES respectively
action is_in
entity Spanish Socialist Workers' Party
action intersection
action find_reverse
entity List of settlements on Christmas Island
relation headquarters location
action find_reverse
entity Madrid
relation headquarters location
["Spanish Socialist Workers' Party", 'headquarters location', 'List of settlements on Christmas Island'] ["Spanish Socialist Workers' Party", 'headquarters location', 'Madrid']
ASK WHERE { resource:Spanish_Socialist_Workers'_Party property:headquarters_location resource:List_of_settlements_on_Christmas_Island . resource:Spanish_Socialist_Workers'_Party property:headquarters_location resource:Madrid }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q19039311
P921
Q2221906 Q1048835
USER
How many geographic locations or political territories were discussed in An account of a voyage to establish a colony at Port Philip in Bass's Strait on the south coast of New South Wales ?
(Q19039311,P921,c(Q2221906)) (Q19039311,P921,c(Q1048835))
action count
action union
action filter_type
action find
entity Q19039311
relation P921
type Q2221906
action filter_type
action find
entity Q19039311
relation P921
type Q1048835
['Q19039311', 'P921', {'concept': 'Q2221906'}] ['Q19039311', 'P921', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { ?l rdf:type ?j . VALUES ( ?j ) { ( ontology:Q2221906 ) ( ontology:Q1048835 ) } }
An account of a voyage to establish a colony at Port Philip in Bass's Strait on the south coast of New South Wales
action count
action union
action filter_type
action find
entity An account of a voyage to establish a colony at Port Philip in Bass's Strait on the south coast of New South Wales
relation main subject
type geographic location
action filter_type
action find
entity An account of a voyage to establish a colony at Port Philip in Bass's Strait on the south coast of New South Wales
relation main subject
type political territorial entity
["An account of a voyage to establish a colony at Port Philip in Bass's Strait on the south coast of New South Wales", 'main subject', {'concept': 'geographic location'}] ["An account of a voyage to establish a colony at Port Philip in Bass's Strait on the south coast of New South Wales", 'main subject', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { ?l rdf:type ?j . VALUES ( ?j ) { ( ontology:geographic_location ) ( ontology:political_territorial_entity ) } }
[]
geographic location political territorial entity
SYSTEM
2
Q408 Q538
(Q19039311,P921,c(Q2221906)) (Q19039311,P921,c(Q1048835))
action count
action union
action filter_type
action find
entity Q19039311
relation P921
type Q2221906
action filter_type
action find
entity Q19039311
relation P921
type Q1048835
[ANSWER]
['Q19039311', 'P921', {'concept': 'Q2221906'}] ['Q19039311', 'P921', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { ?l rdf:type ?j . VALUES ( ?j ) { ( ontology:Q2221906 ) ( ontology:Q1048835 ) } }
Australia Oceania
2
action count
action union
action filter_type
action find
entity An account of a voyage to establish a colony at Port Philip in Bass's Strait on the south coast of New South Wales
relation main subject
type geographic location
action filter_type
action find
entity An account of a voyage to establish a colony at Port Philip in Bass's Strait on the south coast of New South Wales
relation main subject
type political territorial entity
["An account of a voyage to establish a colony at Port Philip in Bass's Strait on the south coast of New South Wales", 'main subject', {'concept': 'geographic location'}] ["An account of a voyage to establish a colony at Port Philip in Bass's Strait on the south coast of New South Wales", 'main subject', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?r ) WHERE { ?l rdf:type ?j . VALUES ( ?j ) { ( ontology:geographic_location ) ( ontology:political_territorial_entity ) } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q4763973 Q6638313
P17
Q1048835
USER
Which political territories are List of settlements on Christmas Island or Anguilla Democratic Party present in ?
OR((Q6638313,P17,c(Q1048835)), (Q4763973,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q6638313
relation P17
action find
entity Q4763973
relation P17
type Q1048835
{'OR': [['Q6638313', 'P17', {'concept': 'Q1048835'}], ['Q4763973', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q6638313 property:P17 ?q } UNION { resource:Q4763973 property:P17 ?q } } . ?q rdf:type ontology:Q1048835 }
Anguilla Democratic Party List of settlements on Christmas Island
action filter_type
action union
action find
entity List of settlements on Christmas Island
relation country
action find
entity Anguilla Democratic Party
relation country
type political territorial entity
{'OR': [['List of settlements on Christmas Island', 'country', {'concept': 'political territorial entity'}], ['Anguilla Democratic Party', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:List_of_settlements_on_Christmas_Island property:country ?q } UNION { resource:Anguilla_Democratic_Party property:country ?q } } . ?q rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q25228 Q408
SYSTEM
Anguilla, Australia
Q25228 Q408
OR((Q6638313,P17,c(Q1048835)), (Q4763973,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q6638313
relation P17
action find
entity Q4763973
relation P17
type Q1048835
Australia [ANSWERS] are List of settlements on Christmas Island or Anguilla Democratic Party present in
{'OR': [['Q6638313', 'P17', {'concept': 'Q1048835'}], ['Q4763973', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q6638313 property:P17 ?q } UNION { resource:Q4763973 property:P17 ?q } } . ?q rdf:type ontology:Q1048835 }
Anguilla Australia
Australia Anguilla and Australia are List of settlements on Christmas Island or Anguilla Democratic Party present in
Anguilla Australia
action filter_type
action union
action find
entity List of settlements on Christmas Island
relation country
action find
entity Anguilla Democratic Party
relation country
type political territorial entity
{'OR': [['List of settlements on Christmas Island', 'country', {'concept': 'political territorial entity'}], ['Anguilla Democratic Party', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:List_of_settlements_on_Christmas_Island property:country ?q } UNION { resource:Anguilla_Democratic_Party property:country ?q } } . ?q rdf:type ontology:political_territorial_entity }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P27
Q1048835 Q502895
USER
How many political territories do approximately the same number of people belong to as that political territory ?
(c(Q502895),P27,c(Q1048835))
[{'concept': 'Q502895'}, 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:P27 ?y . ?z rdf:type ontology:Q502895 . ?y rdf:type ontology:Q1048835 }
[{'concept': 'common name'}, 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:country_of_citizenship ?y . ?z rdf:type ontology:common_name . ?y rdf:type ontology:political_territorial_entity }
[]
political territorial entity common name
Comparative|Count over More/Less|Single entity type|Clarification
Q408
SYSTEM
Did you mean Australia ?
(c(Q502895),P27,c(Q1048835))
[ANSWER]
[{'concept': 'Q502895'}, 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:P27 ?y . ?z rdf:type ontology:Q502895 . ?y rdf:type ontology:Q1048835 }
Did you mean Australia ?
Australia
[{'concept': 'common name'}, 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:country_of_citizenship ?y . ?z rdf:type ontology:common_name . ?y rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (Count) (All)
USER
Yes
(c(Q502895),P27,c(Q1048835))
[{'concept': 'Q502895'}, 'P27', {'concept': 'Q1048835'}]
[{'concept': 'common name'}, 'country of citizenship', {'concept': 'political territorial entity'}]
[]
SYSTEM
5
Q664 Q16 Q35 Q40 Q408
(c(Q502895),P27,c(Q1048835))
[ANSWER]
[{'concept': 'Q502895'}, 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:P27 ?y . ?z rdf:type ontology:Q502895 . ?y rdf:type ontology:Q1048835 }
New Zealand Canada Denmark Austria Australia
5
[{'concept': 'common name'}, 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:country_of_citizenship ?y . ?z rdf:type ontology:common_name . ?y rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q40
P530
Q1048835 Q1048835
USER
Which political territories have diplomatic relations with lesser number of political territories than Austria ?
(c(Q1048835),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q40
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?h ) AS ?r ) WHERE { ?u rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q1048835 . ?u property:P530 ?h } GROUP BY ?u } . FILTER ( ?r < ?f ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { resource:Q40 property:P530 ?e . ?e rdf:type ontology:Q1048835 } } }
Austria
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Austria
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?h ) AS ?r ) WHERE { ?u rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:political_territorial_entity . ?u property:diplomatic_relation ?h } GROUP BY ?u } . FILTER ( ?r < ?f ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { resource:Austria property:diplomatic_relation ?e . ?e rdf:type ontology:political_territorial_entity } } }
[]
political territorial entity political territorial entity
Q1000 Q769 Q691
SYSTEM
Gabon, Grenada, Papua New Guinea
Q1000 Q781 Q778 Q769 Q685 Q691 Q766
(c(Q1048835),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q40
relation P530
type Q1048835
[ANSWERS] have diplomatic relations with lesser number of political territories than Austria
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?h ) AS ?r ) WHERE { ?u rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q1048835 . ?u property:P530 ?h } GROUP BY ?u } . FILTER ( ?r < ?f ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { resource:Q40 property:P530 ?e . ?e rdf:type ontology:Q1048835 } } }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea Jamaica
Gabon, Grenada and Papua New Guinea have diplomatic relations with lesser number of political territories than Austria
Gabon Grenada Papua New Guinea
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Austria
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?h ) AS ?r ) WHERE { ?u rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:political_territorial_entity . ?u property:diplomatic_relation ?h } GROUP BY ?u } . FILTER ( ?r < ?f ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { resource:Austria property:diplomatic_relation ?e . ?e rdf:type ontology:political_territorial_entity } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q16
P530
Q1048835 Q1048835
USER
And also tell me about Canada?
(c(Q1048835),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q16
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?l ) WHERE { resource:Q16 property:P530 ?f . ?f rdf:type ontology:Q1048835 } } . FILTER ( ?a < ?l ) . { SELECT DISTINCT ?g ( COUNT ( ?v ) AS ?a ) WHERE { ?g property:P530 ?v . ?v rdf:type ontology:Q1048835 . ?g rdf:type ontology:Q1048835 } GROUP BY ?g } }
Canada
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Canada
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?l ) WHERE { resource:Canada property:diplomatic_relation ?f . ?f rdf:type ontology:political_territorial_entity } } . FILTER ( ?a < ?l ) . { SELECT DISTINCT ?g ( COUNT ( ?v ) AS ?a ) WHERE { ?g property:diplomatic_relation ?v . ?v rdf:type ontology:political_territorial_entity . ?g rdf:type ontology:political_territorial_entity } GROUP BY ?g } }
[]
political territorial entity political territorial entity
Q35 Q40 Q664
SYSTEM
Denmark, Austria, New Zealand
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q664 Q766
(c(Q1048835),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q16
relation P530
type Q1048835
[ANSWERS]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?l ) WHERE { resource:Q16 property:P530 ?f . ?f rdf:type ontology:Q1048835 } } . FILTER ( ?a < ?l ) . { SELECT DISTINCT ?g ( COUNT ( ?v ) AS ?a ) WHERE { ?g property:P530 ?v . ?v rdf:type ontology:Q1048835 . ?g rdf:type ontology:Q1048835 } GROUP BY ?g } }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea New Zealand Jamaica
Denmark Austria New Zealand
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Canada
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?l ) WHERE { resource:Canada property:diplomatic_relation ?f . ?f rdf:type ontology:political_territorial_entity } } . FILTER ( ?a < ?l ) . { SELECT DISTINCT ?g ( COUNT ( ?v ) AS ?a ) WHERE { ?g property:diplomatic_relation ?v . ?v rdf:type ontology:political_territorial_entity . ?g rdf:type ontology:political_territorial_entity } GROUP BY ?g } }
[]