Simple Question (Direct)
Simple Question
Q1984439
P27
Q15617994
USER
Which administrative territory does José Luis Loreto belong to ?
(Q1984439,P27,c(Q15617994))
action filter_type
action find
entity Q1984439
relation P27
type Q15617994
['Q1984439', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q1984439 property:P27 ?f . ?f rdf:type ontology:Q15617994 }
José Luis Loreto
action filter_type
action find
entity José Luis Loreto
relation country of citizenship
type designation for an administrative territorial entity
['José Luis Loreto', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:José_Luis_Loreto property:country_of_citizenship ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29
SYSTEM
Spain
Q29
(Q1984439,P27,c(Q15617994))
action filter_type
action find
entity Q1984439
relation P27
type Q15617994
José Luis Loreto belongs to Real [ANSWER]
['Q1984439', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q1984439 property:P27 ?f . ?f rdf:type ontology:Q15617994 }
Spain
José Luis Loreto belongs to Real Spain
Spain
action filter_type
action find
entity José Luis Loreto
relation country of citizenship
type designation for an administrative territorial entity
['José Luis Loreto', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:José_Luis_Loreto property:country_of_citizenship ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1984439
P19
Q56061
USER
Which administrative territory is the birthplace of that person ?
(Q29,P19,c(Q56061))
action filter_type
action find
entity Q1984439
relation P19
type Q56061
['Q29', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { resource:Q1984439 property:P19 ?u . ?u rdf:type ontology:Q56061 }
José Luis Loreto
action filter_type
action find
entity José Luis Loreto
relation place of birth
type administrative territorial entity
['Spain', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:José_Luis_Loreto property:place_of_birth ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q8717
SYSTEM
Seville
Q8717
(Q29,P19,c(Q56061))
action filter_type
action find
entity Q1984439
relation P19
type Q56061
[ANSWER] is the birthplace of that person
['Q29', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { resource:Q1984439 property:P19 ?u . ?u rdf:type ontology:Q56061 }
Seville
Seville is the birthplace of that person
Seville
action filter_type
action find
entity José Luis Loreto
relation place of birth
type administrative territorial entity
['Spain', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:José_Luis_Loreto property:place_of_birth ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q8717
P47
Q1048835
USER
Which political territories are bordered by that administrative territory ?
(Q8717,P47,c(Q1048835))
action filter_type
action find
entity Q8717
relation P47
type Q1048835
['Q8717', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q1048835 . resource:Q8717 property:P47 ?k }
Seville
action filter_type
action find
entity Seville
relation shares border with
type political territorial entity
['Seville', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:political_territorial_entity . resource:Seville property:shares_border_with ?k }
[]
political territorial entity
Q494781 Q489205 Q1146785
SYSTEM
Alcalá de Guadaíra, Dos Hermanas, La Rinconada
Q1629807 Q752127 Q568278 Q904151 Q1146785 Q1447544 Q1611693 Q494781 Q1628386 Q489205
(Q8717,P47,c(Q1048835))
action filter_type
action find
entity Q8717
relation P47
type Q1048835
[ANSWERS] are bordered by that administrative territory
['Q8717', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q1048835 . resource:Q8717 property:P47 ?k }
Salteras Camas Santiponce La Algaba La Rinconada Tomares San Juan de Aznalfarache Alcalá de Guadaíra Gelves Dos Hermanas
Alcalá de Guadaíra, Dos Hermanas and La Rinconada are bordered by that administrative territory
Alcalá de Guadaíra Dos Hermanas La Rinconada
action filter_type
action find
entity Seville
relation shares border with
type political territorial entity
['Seville', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:political_territorial_entity . resource:Seville property:shares_border_with ?k }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q494781
P47
Q1048835
USER
How many political territories have a shared border with Alcalá de Guadaíra ?
(Q494781,P47,c(Q1048835))
action count
action filter_type
action find
entity Q494781
relation P47
type Q1048835
['Q494781', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { resource:Q494781 property:P47 ?u . ?u rdf:type ontology:Q1048835 }
Alcalá de Guadaíra
action count
action filter_type
action find
entity Alcalá de Guadaíra
relation shares border with
type political territorial entity
['Alcalá de Guadaíra', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { resource:Alcalá_de_Guadaíra property:shares_border_with ?u . ?u rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
6
Q62717 Q1146804 Q489205 Q753825 Q1628379 Q428954
(Q494781,P47,c(Q1048835))
action count
action filter_type
action find
entity Q494781
relation P47
type Q1048835
[ANSWER]
['Q494781', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { resource:Q494781 property:P47 ?u . ?u rdf:type ontology:Q1048835 }
Arahal Los Molares Dos Hermanas Utrera Mairena del Alcor Los Palacios y Villafranca
6
action count
action filter_type
action find
entity Alcalá de Guadaíra
relation shares border with
type political territorial entity
['Alcalá de Guadaíra', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { resource:Alcalá_de_Guadaíra property:shares_border_with ?u . ?u rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q29
P1313
Q12737077
USER
Which occupation is fulfilled by Spain ?
(Q29,P1313,c(Q12737077))
action filter_type
action find
entity Q29
relation P1313
type Q12737077
['Q29', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q29 property:P1313 ?h . ?h rdf:type ontology:Q12737077 }
Spain
action filter_type
action find
entity Spain
relation office held by head of government
type occupation
['Spain', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Spain property:office_held_by_head_of_government ?h . ?h rdf:type ontology:occupation }
[]
occupation
Q844587
SYSTEM
Prime Minister of Spain
Q844587
(Q29,P1313,c(Q12737077))
action filter_type
action find
entity Q29
relation P1313
type Q12737077
Spain [ANSWER] is fulfilled by Spain
['Q29', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { resource:Q29 property:P1313 ?h . ?h rdf:type ontology:Q12737077 }
Prime Minister of Spain
Spain Prime Minister of Spain is fulfilled by Spain
Prime Minister of Spain
action filter_type
action find
entity Spain
relation office held by head of government
type occupation
['Spain', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { resource:Spain property:office_held_by_head_of_government ?h . ?h rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q844587 Q29
P17
Q15617994
USER
Is Prime Minister of Spain situated in Spain ?
(Q844587,P17,Q29)
action is_in
entity Q29
action find
entity Q844587
relation P17
['Q844587', 'P17', 'Q29']
ASK WHERE { resource:Q844587 property:P17 resource:Q29 }
Prime Minister of Spain Spain
action is_in
entity Spain
action find
entity Prime Minister of Spain
relation country
['Prime Minister of Spain', 'country', 'Spain']
ASK WHERE { resource:Prime_Minister_of_Spain property:country resource:Spain }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q844587,P17,Q29)
action is_in
entity Q29
action find
entity Q844587
relation P17
[ANSWER]
['Q844587', 'P17', 'Q29']
ASK WHERE { resource:Q844587 property:P17 resource:Q29 }
Yes
action is_in
entity Spain
action find
entity Prime Minister of Spain
relation country
['Prime Minister of Spain', 'country', 'Spain']
ASK WHERE { resource:Prime_Minister_of_Spain property:country resource:Spain }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P417
Q502895 Q12737077
USER
Which people are the names of the patron saint of max number of occupations ?
(c(Q12737077),P417,Q208331)
action argmax
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
[{'concept': 'Q12737077'}, 'P417', 'Q208331']
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?j ) { SELECT DISTINCT ?q ( COUNT ( ?z ) AS ?n ) WHERE { ?z property:P417 ?q . ?z rdf:type ontology:Q12737077 . ?q rdf:type ontology:Q502895 } GROUP BY ?q } } . { SELECT DISTINCT ?i ( COUNT ( ?e ) AS ?l ) WHERE { ?e property:P417 ?i . ?i rdf:type ontology:Q502895 . ?e rdf:type ontology:Q12737077 } GROUP BY ?i } . FILTER ( ?l = ?j ) }
action argmax
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
[{'concept': 'occupation'}, 'patron saint', 'Olaf II of Norway']
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?j ) { SELECT DISTINCT ?q ( COUNT ( ?z ) AS ?n ) WHERE { ?z property:patron_saint ?q . ?z rdf:type ontology:occupation . ?q rdf:type ontology:common_name } GROUP BY ?q } } . { SELECT DISTINCT ?i ( COUNT ( ?e ) AS ?l ) WHERE { ?e property:patron_saint ?i . ?i rdf:type ontology:common_name . ?e rdf:type ontology:occupation } GROUP BY ?i } . FILTER ( ?l = ?j ) }
[]
common name occupation
Q179718
SYSTEM
Catherine of Alexandria
Q179718
(c(Q12737077),P417,Q208331)
action argmax
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
[ANSWER] is the names of the patron saint of max number of occupations
[{'concept': 'Q12737077'}, 'P417', 'Q208331']
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?j ) { SELECT DISTINCT ?q ( COUNT ( ?z ) AS ?n ) WHERE { ?z property:P417 ?q . ?z rdf:type ontology:Q12737077 . ?q rdf:type ontology:Q502895 } GROUP BY ?q } } . { SELECT DISTINCT ?i ( COUNT ( ?e ) AS ?l ) WHERE { ?e property:P417 ?i . ?i rdf:type ontology:Q502895 . ?e rdf:type ontology:Q12737077 } GROUP BY ?i } . FILTER ( ?l = ?j ) }
Catherine of Alexandria
Catherine of Alexandria is the names of the patron saint of max number of occupations
Catherine of Alexandria
action argmax
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
[{'concept': 'occupation'}, 'patron saint', 'Olaf II of Norway']
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MAX ( ?n ) AS ?j ) { SELECT DISTINCT ?q ( COUNT ( ?z ) AS ?n ) WHERE { ?z property:patron_saint ?q . ?z rdf:type ontology:occupation . ?q rdf:type ontology:common_name } GROUP BY ?q } } . { SELECT DISTINCT ?i ( COUNT ( ?e ) AS ?l ) WHERE { ?e property:patron_saint ?i . ?i rdf:type ontology:common_name . ?e rdf:type ontology:occupation } GROUP BY ?i } . FILTER ( ?l = ?j ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P825
Q502895 Q4989906 Q41176
USER
How many people are approximately the same number of monuments and buildings dedicated to as that person ?
(c(Q4989906)|c(Q41176),P825,c(Q502895))
action count
action approx
action union
action find_reverse_tuple_counts
relation P825
type Q502895
type Q4989906
action find_reverse_tuple_counts
relation P825
type Q502895
type Q41176
action count
action filter_multi_types
action find_reverse
entity Q179718
relation P825
type Q4989906
type Q41176
[[{'concept': 'Q4989906'}, {'concept': 'Q41176'}], 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) ?g WHERE { ?t rdf:type ?j . VALUES ( ?j ) { ( ontology:Q4989906 ) ( ontology:Q41176 ) } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) WHERE { ?h property:P825 resource:Q179718 . { { ?h rdf:type ontology:Q4989906 } UNION { ?h rdf:type ontology:Q41176 } } } } . FILTER ( ?u = ?l ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation dedicated to
type common name
type monument
action find_reverse_tuple_counts
relation dedicated to
type common name
type building
action count
action filter_multi_types
action find_reverse
entity Catherine of Alexandria
relation dedicated to
type monument
type building
[[{'concept': 'monument'}, {'concept': 'building'}], 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) ?g WHERE { ?t rdf:type ?j . VALUES ( ?j ) { ( ontology:monument ) ( ontology:building ) } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) WHERE { ?h property:dedicated_to resource:Catherine_of_Alexandria . { { ?h rdf:type ontology:monument } UNION { ?h rdf:type ontology:building } } } } . FILTER ( ?u = ?l ) }
[]
common name monument building
SYSTEM
54
Q983142 Q1774929 Q3190301 Q2288858 Q179718 Q313737 Q7593283 Q19629510 Q683792 Q171411 Q94316 Q11074321 Q4127503 Q1889720 Q55398 Q200188 Q966298 Q1196817 Q433995 Q43600 Q314846 Q1429 Q32613 Q191039 Q11633375 Q311080 Q426814 Q314802 Q700317 Q11403852 Q183332 Q269520 Q346 Q1132756 Q3618054 Q349287 Q3099236 Q316658 Q11368835 Q164522 Q11403867 Q149727 Q31966 Q1769 Q1446 Q310462 Q10881970 Q232803 Q40662 Q299179 Q1407 Q1405 Q836214 Q51673
(c(Q4989906)|c(Q41176),P825,c(Q502895))
action count
action approx
action union
action find_reverse_tuple_counts
relation P825
type Q502895
type Q4989906
action find_reverse_tuple_counts
relation P825
type Q502895
type Q41176
action count
action filter_multi_types
action find_reverse
entity Q179718
relation P825
type Q4989906
type Q41176
[ANSWER]
[[{'concept': 'Q4989906'}, {'concept': 'Q41176'}], 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) ?g WHERE { ?t rdf:type ?j . VALUES ( ?j ) { ( ontology:Q4989906 ) ( ontology:Q41176 ) } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) WHERE { ?h property:P825 resource:Q179718 . { { ?h rdf:type ontology:Q4989906 } UNION { ?h rdf:type ontology:Q41176 } } } } . FILTER ( ?u = ?l ) }
Julian the Hospitaller Ferreolus Just of Lyon Moriyoshi-shinnō Catherine of Alexandria Drusus Julius Caesar St Govan Saint Goustan Kitabatake Chikafusa Oda Nobunaga Kikuchi Taketoki Kaneyoshi-shinnō Ferrutio Cadoc Bernadette Soubirous Jimmu Kusunoki Masatsura Maeda Toshiie Fujiwara no Kamatari Matthew the Apostle Emperor Kammu Antoninus Pius Minamoto no Yoshiie Germanicus Prince Toyokiirihiko Uesugi Kenshin Emmanuel de Rohan-Polduc Tenji Yasuhito Chichibu Kitabatake Morichika Saint Sebastian Shōken Louis IX of France Sakai Tadatsugu Annibale Cressoni Sutoku Minamoto no Tsunemoto Go-Toba Shizuko Nogi Hieda no Are Kitabatake Akinobu Saint Giles Mark the Evangelist Alexander Severus Caracalla Saigō Takamori Itsuse no Mikoto Empress Jingu John the Baptist Kōmei Tiberius Augustus Princess Tōchi Mark Antony
54
action count
action approx
action union
action find_reverse_tuple_counts
relation dedicated to
type common name
type monument
action find_reverse_tuple_counts
relation dedicated to
type common name
type building
action count
action filter_multi_types
action find_reverse
entity Catherine of Alexandria
relation dedicated to
type monument
type building
[[{'concept': 'monument'}, {'concept': 'building'}], 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) ?g WHERE { ?t rdf:type ?j . VALUES ( ?j ) { ( ontology:monument ) ( ontology:building ) } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) WHERE { ?h property:dedicated_to resource:Catherine_of_Alexandria . { { ?h rdf:type ontology:monument } UNION { ?h rdf:type ontology:building } } } } . FILTER ( ?u = ?l ) }
[]