Simple Question (Direct)
Simple Question
Q972784
P21
Q290
USER
What is the sex of Efraín Amézcua ?
(Q972784,P21,c(Q290))
action filter_type
action find
entity Q972784
relation P21
type Q290
['Q972784', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { resource:Q972784 property:P21 ?l . ?l rdf:type ontology:Q290 }
Efraín Amézcua
action filter_type
action find
entity Efraín Amézcua
relation gender
type sex
['Efraín Amézcua', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { resource:Efraín_Amézcua property:gender ?l . ?l rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q972784,P21,c(Q290))
action filter_type
action find
entity Q972784
relation P21
type Q290
The sex of Efraín Amézcua is the [ANSWER]
['Q972784', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { resource:Q972784 property:P21 ?l . ?l rdf:type ontology:Q290 }
male
The sex of Efraín Amézcua is the male
male
action filter_type
action find
entity Efraín Amézcua
relation gender
type sex
['Efraín Amézcua', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { resource:Efraín_Amézcua property:gender ?l . ?l rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q972784
P1412
Q34770
USER
Which language can Efraín Amézcua read ?
(Q972784,P1412,c(Q34770))
action filter_type
action find
entity Q972784
relation P1412
type Q34770
['Q972784', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?b WHERE { resource:Q972784 property:P1412 ?b . ?b rdf:type ontology:Q34770 }
Efraín Amézcua
action filter_type
action find
entity Efraín Amézcua
relation languages spoken, written or signed
type language
['Efraín Amézcua', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?b WHERE { resource:Efraín_Amézcua property:languages_spoken,_written_or_signed ?b . ?b rdf:type ontology:language }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q972784,P1412,c(Q34770))
action filter_type
action find
entity Q972784
relation P1412
type Q34770
Efraín Amézcua can read in [ANSWER]
['Q972784', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?b WHERE { resource:Q972784 property:P1412 ?b . ?b rdf:type ontology:Q34770 }
Spanish
Efraín Amézcua can read in Spanish
Spanish
action filter_type
action find
entity Efraín Amézcua
relation languages spoken, written or signed
type language
['Efraín Amézcua', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?b WHERE { resource:Efraín_Amézcua property:languages_spoken,_written_or_signed ?b . ?b rdf:type ontology:language }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q42780
P37
Q34770 Q1048835
USER
Which political territories are greater number of languages associated to as the official language than Ningbo ?
(c(Q1048835),P37,c(Q34770))
action greater
action find_tuple_counts
relation P37
type Q1048835
type Q34770
action count
action filter_type
action find
entity Q42780
relation P37
type Q1048835
[{'concept': 'Q1048835'}, 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?d ) AS ?l ) WHERE { ?v property:P37 ?d . ?d rdf:type ontology:Q34770 . ?v rdf:type ontology:Q1048835 } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) WHERE { resource:Q42780 property:P37 ?j . ?j rdf:type ontology:Q1048835 } } . FILTER ( ?l > ?h ) }
Ningbo
action greater
action find_tuple_counts
relation official language
type political territorial entity
type language
action count
action filter_type
action find
entity Ningbo
relation official language
type political territorial entity
[{'concept': 'political territorial entity'}, 'official language', {'concept': 'language'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?d ) AS ?l ) WHERE { ?v property:official_language ?d . ?d rdf:type ontology:language . ?v rdf:type ontology:political_territorial_entity } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) WHERE { resource:Ningbo property:official_language ?j . ?j rdf:type ontology:political_territorial_entity } } . FILTER ( ?l > ?h ) }
[]
language political territorial entity
Q408 Q16 Q5705
SYSTEM
Australia, Canada, Catalonia
Q127167 Q193714 Q691 Q686790 Q785 Q769 Q763 Q917883 Q35086 Q766 Q9676 Q1054923 Q52626 Q5720 Q664 Q13353 Q37362 Q1771153 Q5705 Q13786 Q16 Q5785 Q624511 Q15601 Q1628531 Q649612 Q757 Q685 Q778 Q25228 Q4474 Q408 Q1631311 Q1444150 Q9648 Q643919 Q1644430 Q23635 Q781 Q1907203 Q1769772
(c(Q1048835),P37,c(Q34770))
action greater
action find_tuple_counts
relation P37
type Q1048835
type Q34770
action count
action filter_type
action find
entity Q42780
relation P37
type Q1048835
[ANSWERS] are greater number of languages associated to as the official language than Ningbo
[{'concept': 'Q1048835'}, 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?d ) AS ?l ) WHERE { ?v property:P37 ?d . ?d rdf:type ontology:Q34770 . ?v rdf:type ontology:Q1048835 } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) WHERE { resource:Q42780 property:P37 ?j . ?j rdf:type ontology:Q1048835 } } . FILTER ( ?l > ?h ) }
Western Cape Mandatory Palestine Papua New Guinea Mediona Jersey Grenada Saint Kitts and Nevis Molina de Segura South Georgia and the South Sandwich Islands Jamaica Isle of Man British Hong Kong Formentera Valencian Country New Zealand Montserrat Akrotiri and Dhekelia Albuixech Catalonia Cebu Canada Cayman Islands Aracena Corbera de Llobregat Quintanar de la Orden Coca, Segovia Saint Vincent and the Grenadines Solomon Islands The Bahamas Anguilla Ortuella Australia Cuéllar Alboloduy Falkland Islands Torfaen County Borough Monreal del Campo Bermuda Antigua and Barbuda San Miguel del Arroyo Bierge
Australia, Canada and Catalonia are greater number of languages associated to as the official language than Ningbo
Australia Canada Catalonia
action greater
action find_tuple_counts
relation official language
type political territorial entity
type language
action count
action filter_type
action find
entity Ningbo
relation official language
type political territorial entity
[{'concept': 'political territorial entity'}, 'official language', {'concept': 'language'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?d ) AS ?l ) WHERE { ?v property:official_language ?d . ?d rdf:type ontology:language . ?v rdf:type ontology:political_territorial_entity } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) WHERE { resource:Ningbo property:official_language ?j . ?j rdf:type ontology:political_territorial_entity } } . FILTER ( ?l > ?h ) }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q408 Q16 Q5705
P47
Q15617994
USER
Which administrative territories are adjacent to those political territories ?
(Q408,P47,c(Q15617994)) (Q16,P47,c(Q15617994)) (Q5705,P47,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P47
type Q15617994
['Q408', 'P47', {'concept': 'Q15617994'}] ['Q16', 'P47', {'concept': 'Q15617994'}] ['Q5705', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q15617994 . ?l property:P47 ?s . VALUES ( ?l ) { ( resource:Q127167 ) ( resource:Q193714 ) ( resource:Q691 ) } }
Australia Canada Catalonia
action filter_type
action find
entity prev_answer
relation shares border with
type designation for an administrative territorial entity
['Australia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Canada', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Catalonia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l property:shares_border_with ?s . VALUES ( ?l ) { ( resource:Western_Cape ) ( resource:Mandatory_Palestine ) ( resource:Papua_New_Guinea ) } }
[]
designation for an administrative territorial entity
Q30 Q142 Q252
SYSTEM
United States of America, France, Indonesia
Q252 Q1979 Q223 Q30 Q142 Q12538 Q12709 Q228
(Q408,P47,c(Q15617994)) (Q16,P47,c(Q15617994)) (Q5705,P47,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P47
type Q15617994
[ANSWERS] are adjacent to those political territories
['Q408', 'P47', {'concept': 'Q15617994'}] ['Q16', 'P47', {'concept': 'Q15617994'}] ['Q5705', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q15617994 . ?l property:P47 ?s . VALUES ( ?l ) { ( resource:Q127167 ) ( resource:Q193714 ) ( resource:Q691 ) } }
Indonesia Prince Edward Island Greenland United States of America France Haute-Garonne Pyrénées-Orientales Andorra
United States of America, France and Indonesia are adjacent to those political territories
United States of America France Indonesia
action filter_type
action find
entity prev_answer
relation shares border with
type designation for an administrative territorial entity
['Australia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Canada', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Catalonia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l property:shares_border_with ?s . VALUES ( ?l ) { ( resource:Western_Cape ) ( resource:Mandatory_Palestine ) ( resource:Papua_New_Guinea ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q408
P6
Q502895
USER
What people are Australia the head of goverment of ?
(Q408,P6,c(Q502895))
action filter_type
action find
entity Q408
relation P6
type Q502895
['Q408', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { resource:Q408 property:P6 ?u . ?u rdf:type ontology:Q502895 }
Australia
action filter_type
action find
entity Australia
relation head of government
type common name
['Australia', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { resource:Australia property:head_of_government ?u . ?u rdf:type ontology:common_name }
[]
common name
Q214438 Q23358 Q348577
SYSTEM
Robert Menzies, Stanley Bruce, Tony Abbott
Q51330 Q23386 Q152666 Q314016 Q23352 Q23375 Q927550 Q23379 Q269372 Q23358 Q43135 Q23333 Q315979 Q41563 Q348577 Q356411 Q356230 Q370926 Q313805 Q370966 Q312722 Q23369 Q23342 Q23347 Q23362 Q214438 Q356261 Q242654 Q459146
(Q408,P6,c(Q502895))
action filter_type
action find
entity Q408
relation P6
type Q502895
[ANSWERS] are Australia the head of goverment of
['Q408', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { resource:Q408 property:P6 ?u . ?u rdf:type ontology:Q502895 }
John Howard John McEwen Billy Hughes Andrew Fisher George Houstoun Reid John Curtin Malcolm Turnbull Ben Chifley Bob Hawke Stanley Bruce Kevin Rudd Gough Whitlam Malcolm Fraser Julia Gillard Tony Abbott John Gorton Joseph Cook Earle Page Alfred Deakin Joseph Lyons Harold Holt Arthur Fadden Edmund Barton Chris Watson James Scullin Robert Menzies William McMahon Paul Keating Frank Forde
Robert Menzies, Stanley Bruce and Tony Abbott are Australia the head of goverment of
Robert Menzies Stanley Bruce Tony Abbott
action filter_type
action find
entity Australia
relation head of government
type common name
['Australia', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { resource:Australia property:head_of_government ?u . ?u rdf:type ontology:common_name }
[]