Simple Question (Direct)
Simple Question
Q184906
P172
Q2472587
USER
Which people does Nâzım Hikmet Ran have as ethnic origin ?
(Q184906,P172,c(Q2472587))
action filter_type
action find
entity Q184906
relation P172
type Q2472587
['Q184906', 'P172', {'concept': 'Q2472587'}]
SELECT DISTINCT ?k WHERE { resource:Q184906 property:P172 ?k . ?k rdf:type ontology:Q2472587 }
Nâzım Hikmet Ran
action filter_type
action find
entity Nâzım Hikmet Ran
relation ethnic group
type people
['Nâzım Hikmet Ran', 'ethnic group', {'concept': 'people'}]
SELECT DISTINCT ?k WHERE { resource:Nâzım_Hikmet_Ran property:ethnic_group ?k . ?k rdf:type ontology:people }
[]
people
Q84072
SYSTEM
Turkish people
Q84072
(Q184906,P172,c(Q2472587))
action filter_type
action find
entity Q184906
relation P172
type Q2472587
Nâzım Hikmet Ran has as ethnic origin as [ANSWER]
['Q184906', 'P172', {'concept': 'Q2472587'}]
SELECT DISTINCT ?k WHERE { resource:Q184906 property:P172 ?k . ?k rdf:type ontology:Q2472587 }
Turkish people
Nâzım Hikmet Ran has as ethnic origin as Turkish people
Turkish people
action filter_type
action find
entity Nâzım Hikmet Ran
relation ethnic group
type people
['Nâzım Hikmet Ran', 'ethnic group', {'concept': 'people'}]
SELECT DISTINCT ?k WHERE { resource:Nâzım_Hikmet_Ran property:ethnic_group ?k . ?k rdf:type ontology:people }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q184906
P26
Q502895
USER
Who is the spouse of that one ?
(c(Q502895),P26,Q84072)
action filter_type
action find
entity Q184906
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q84072']
SELECT DISTINCT ?y WHERE { resource:Q184906 property:P26 ?y . ?y rdf:type ontology:Q502895 }
Nâzım Hikmet Ran
action filter_type
action find
entity Nâzım Hikmet Ran
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Turkish people']
SELECT DISTINCT ?y WHERE { resource:Nâzım_Hikmet_Ran property:spouse ?y . ?y rdf:type ontology:common_name }
[]
common name
Q3334011
SYSTEM
Münevver Andaç
Q3334011
(c(Q502895),P26,Q84072)
action filter_type
action find
entity Q184906
relation P26
type Q502895
The spouse of that one is the [ANSWER]
[{'concept': 'Q502895'}, 'P26', 'Q84072']
SELECT DISTINCT ?y WHERE { resource:Q184906 property:P26 ?y . ?y rdf:type ontology:Q502895 }
Münevver Andaç
The spouse of that one is the Münevver Andaç
Münevver Andaç
action filter_type
action find
entity Nâzım Hikmet Ran
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Turkish people']
SELECT DISTINCT ?y WHERE { resource:Nâzım_Hikmet_Ran property:spouse ?y . ?y rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q4357717 Q184906
P47 P20
Q56061
USER
Which administrative territories did the expiration of Nâzım Hikmet Ran occur or have a shared border with Stora Mossen ?
OR((Q184906,P20,c(Q56061)), (Q4357717,P47,c(Q56061)))
action filter_type
action union
action find
entity Q184906
relation P20
action find
entity Q4357717
relation P47
type Q56061
{'OR': [['Q184906', 'P20', {'concept': 'Q56061'}], ['Q4357717', 'P47', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q184906 property:P20 ?t } UNION { resource:Q4357717 property:P47 ?t } } . ?t rdf:type ontology:Q56061 }
Stora Mossen Nâzım Hikmet Ran
action filter_type
action union
action find
entity Nâzım Hikmet Ran
relation place of death
action find
entity Stora Mossen
relation shares border with
type administrative territorial entity
{'OR': [['Nâzım Hikmet Ran', 'place of death', {'concept': 'administrative territorial entity'}], ['Stora Mossen', 'shares border with', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Nâzım_Hikmet_Ran property:place_of_death ?t } UNION { resource:Stora_Mossen property:shares_border_with ?t } } . ?t rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q649 Q1781392 Q1589316 Q4357001 Q4357004 Q30954 Q1781774 Q448970
SYSTEM
Moscow, Abrahamsberg, Traneberg, Riksby, Äppelviken, Ålsten, Ulvsunda, Alvik
Q649 Q1781392 Q1589316 Q4357001 Q4357004 Q30954 Q1781774 Q448970
OR((Q184906,P20,c(Q56061)), (Q4357717,P47,c(Q56061)))
action filter_type
action union
action find
entity Q184906
relation P20
action find
entity Q4357717
relation P47
type Q56061
The expiration of Nâzım Hikmet Ran occurred in [ANSWERS]
{'OR': [['Q184906', 'P20', {'concept': 'Q56061'}], ['Q4357717', 'P47', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q184906 property:P20 ?t } UNION { resource:Q4357717 property:P47 ?t } } . ?t rdf:type ontology:Q56061 }
Moscow Abrahamsberg Traneberg Riksby Äppelviken Ålsten Ulvsunda Alvik
The expiration of Nâzım Hikmet Ran occurred in Moscow, Abrahamsberg, Traneberg, Riksby, Äppelviken, Ålsten, Ulvsunda and Alvik
Moscow Abrahamsberg Traneberg Riksby Äppelviken Ålsten Ulvsunda Alvik
action filter_type
action union
action find
entity Nâzım Hikmet Ran
relation place of death
action find
entity Stora Mossen
relation shares border with
type administrative territorial entity
{'OR': [['Nâzım Hikmet Ran', 'place of death', {'concept': 'administrative territorial entity'}], ['Stora Mossen', 'shares border with', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Nâzım_Hikmet_Ran property:place_of_death ?t } UNION { resource:Stora_Mossen property:shares_border_with ?t } } . ?t rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q51929
P417
Q502895 Q1445650 Q56061
USER
Which administrative territories are lesser number of people or holidays a patron saint of than Ischitella ?
(c(Q56061),P417,c(Q502895)|c(Q1445650))
action less
action union
action find_tuple_counts
relation P417
type Q56061
type Q502895
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action count
action filter_multi_types
action find
entity Q51929
relation P417
type Q502895
type Q1445650
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?f ) ?s WHERE { VALUES ( ?e ) { ( ontology:Q502895 ) ( ontology:Q1445650 ) } . ?x rdf:type ?e } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?d ) WHERE { { ?n rdf:type ?v . VALUES ( ?v ) { ( ontology:Q502895 ) ( ontology:Q1445650 ) } } . resource:Q51929 property:P417 ?n } } . FILTER ( ?f < ?d ) }
Ischitella
action less
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action count
action filter_multi_types
action find
entity Ischitella
relation patron saint
type common name
type holiday
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?f ) ?s WHERE { VALUES ( ?e ) { ( ontology:common_name ) ( ontology:holiday ) } . ?x rdf:type ?e } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?d ) WHERE { { ?n rdf:type ?v . VALUES ( ?v ) { ( ontology:common_name ) ( ontology:holiday ) } } . resource:Ischitella property:patron_saint ?n } } . FILTER ( ?f < ?d ) }
[]
common name holiday administrative territorial entity
Q6221 Q329984 Q4361
SYSTEM
Brescia, Úbeda, Curitiba
Q264716 Q12883498 Q54494 Q50057 Q117388 Q6221 Q46718 Q54119 Q81258 Q47074 Q59257 Q4361 Q2914723 Q100129 Q52547 Q116440 Q2284679 Q496890 Q297224 Q259039 Q54556 Q487786 Q100943 Q244193 Q1747381 Q492475 Q334577 Q39493 Q329984 Q47034 Q215080 Q270288 Q102820
(c(Q56061),P417,c(Q502895)|c(Q1445650))
action less
action union
action find_tuple_counts
relation P417
type Q56061
type Q502895
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action count
action filter_multi_types
action find
entity Q51929
relation P417
type Q502895
type Q1445650
[ANSWERS] are lesser number of people or holidays a patron saint of than Ischitella
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?f ) ?s WHERE { VALUES ( ?e ) { ( ontology:Q502895 ) ( ontology:Q1445650 ) } . ?x rdf:type ?e } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?d ) WHERE { { ?n rdf:type ?v . VALUES ( ?v ) { ( ontology:Q502895 ) ( ontology:Q1445650 ) } } . resource:Q51929 property:P417 ?n } } . FILTER ( ?f < ?d ) }
Carzano Pano Platres Belvedere di Spinello Cagnano Amiterno Strangolagalli Brescia Carrè San Pedro Padula Aielli Montefortino Curitiba Nemausus Calvenzano Campomaggiore Arpino General Alvear, Mendoza Balestrate Padergnone Giardinello Africo Orihuela Sorbolo Cagno Polykastro Valença Quetzaltenango Cantello Úbeda Espoo Machala Riccò del Golfo di Spezia Nibbiano
Brescia, Úbeda and Curitiba are lesser number of people or holidays a patron saint of than Ischitella
Brescia Úbeda Curitiba
action less
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action count
action filter_multi_types
action find
entity Ischitella
relation patron saint
type common name
type holiday
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?f ) ?s WHERE { VALUES ( ?e ) { ( ontology:common_name ) ( ontology:holiday ) } . ?x rdf:type ?e } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?d ) WHERE { { ?n rdf:type ?v . VALUES ( ?v ) { ( ontology:common_name ) ( ontology:holiday ) } } . resource:Ischitella property:patron_saint ?n } } . FILTER ( ?f < ?d ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q2090
P417
Q502895 Q1445650 Q56061
USER
And what about Nuremberg?
(c(Q56061),P417,c(Q502895)|c(Q1445650))
action less
action union
action find_tuple_counts
relation P417
type Q56061
type Q502895
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action count
action filter_multi_types
action find
entity Q2090
relation P417
type Q502895
type Q1445650
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) ?l WHERE { { ?j rdf:type ontology:Q502895 . ?l rdf:type ontology:Q56061 . ?l property:P417 ?j } UNION { ?l property:P417 ?j . ?j rdf:type ontology:Q1445650 . ?l rdf:type ontology:Q56061 } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?f ) WHERE { resource:Q2090 property:P417 ?k . { { ?k rdf:type ontology:Q502895 } UNION { ?k rdf:type ontology:Q1445650 } } } } . FILTER ( ?s < ?f ) }
Nuremberg
action less
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action count
action filter_multi_types
action find
entity Nuremberg
relation patron saint
type common name
type holiday
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) ?l WHERE { { ?j rdf:type ontology:common_name . ?l rdf:type ontology:administrative_territorial_entity . ?l property:patron_saint ?j } UNION { ?l property:patron_saint ?j . ?j rdf:type ontology:holiday . ?l rdf:type ontology:administrative_territorial_entity } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?f ) WHERE { resource:Nuremberg property:patron_saint ?k . { { ?k rdf:type ontology:common_name } UNION { ?k rdf:type ontology:holiday } } } } . FILTER ( ?s < ?f ) }
[]
common name holiday administrative territorial entity
Q6221 Q329984 Q4361
SYSTEM
Brescia, Úbeda, Curitiba
Q264716 Q12883498 Q54494 Q50057 Q117388 Q6221 Q46718 Q54119 Q81258 Q47074 Q59257 Q4361 Q2914723 Q100129 Q52547 Q116440 Q2284679 Q496890 Q297224 Q259039 Q54556 Q487786 Q100943 Q244193 Q1747381 Q492475 Q334577 Q39493 Q329984 Q47034 Q215080 Q270288 Q102820
(c(Q56061),P417,c(Q502895)|c(Q1445650))
action less
action union
action find_tuple_counts
relation P417
type Q56061
type Q502895
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action count
action filter_multi_types
action find
entity Q2090
relation P417
type Q502895
type Q1445650
[ANSWERS]
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) ?l WHERE { { ?j rdf:type ontology:Q502895 . ?l rdf:type ontology:Q56061 . ?l property:P417 ?j } UNION { ?l property:P417 ?j . ?j rdf:type ontology:Q1445650 . ?l rdf:type ontology:Q56061 } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?f ) WHERE { resource:Q2090 property:P417 ?k . { { ?k rdf:type ontology:Q502895 } UNION { ?k rdf:type ontology:Q1445650 } } } } . FILTER ( ?s < ?f ) }
Carzano Pano Platres Belvedere di Spinello Cagnano Amiterno Strangolagalli Brescia Carrè San Pedro Padula Aielli Montefortino Curitiba Nemausus Calvenzano Campomaggiore Arpino General Alvear, Mendoza Balestrate Padergnone Giardinello Africo Orihuela Sorbolo Cagno Polykastro Valença Quetzaltenango Cantello Úbeda Espoo Machala Riccò del Golfo di Spezia Nibbiano
Brescia Úbeda Curitiba
action less
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action count
action filter_multi_types
action find
entity Nuremberg
relation patron saint
type common name
type holiday
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) ?l WHERE { { ?j rdf:type ontology:common_name . ?l rdf:type ontology:administrative_territorial_entity . ?l property:patron_saint ?j } UNION { ?l property:patron_saint ?j . ?j rdf:type ontology:holiday . ?l rdf:type ontology:administrative_territorial_entity } } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?f ) WHERE { resource:Nuremberg property:patron_saint ?k . { { ?k rdf:type ontology:common_name } UNION { ?k rdf:type ontology:holiday } } } } . FILTER ( ?s < ?f ) }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P190
Q20667921 Q1048835
USER
How many french administrative divisions and political territories are twin cities of that administrative territory ?
(Q329984,P190,c(Q20667921)) (Q329984,P190,c(Q1048835)) (Q6221,P190,c(Q20667921)) (Q6221,P190,c(Q1048835)) (Q329984,P190,c(Q20667921)) (Q329984,P190,c(Q1048835)) (Q4361,P190,c(Q20667921)) (Q4361,P190,c(Q1048835))
['Q329984', 'P190', {'concept': 'Q20667921'}] ['Q329984', 'P190', {'concept': 'Q1048835'}] ['Q6221', 'P190', {'concept': 'Q20667921'}] ['Q6221', 'P190', {'concept': 'Q1048835'}] ['Q329984', 'P190', {'concept': 'Q20667921'}] ['Q329984', 'P190', {'concept': 'Q1048835'}] ['Q4361', 'P190', {'concept': 'Q20667921'}] ['Q4361', 'P190', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Q329984 property:P190 ?z } UNION { resource:Q329984 property:P190 ?y } UNION { resource:Q16860406 property:P190 ?z } UNION { resource:Q16860406 property:P190 ?y } UNION { resource:Q329984 property:P190 ?z } UNION { resource:Q329984 property:P190 ?y } UNION { resource:Q1849088 property:P190 ?z } UNION { resource:Q1849088 property:P190 ?y } } . ?z rdf:type ontology:Q20667921 . ?y rdf:type ontology:Q1048835 }
['Úbeda', 'sister city', {'concept': 'type of french administrative division'}] ['Úbeda', 'sister city', {'concept': 'political territorial entity'}] ['Brescia', 'sister city', {'concept': 'type of french administrative division'}] ['Brescia', 'sister city', {'concept': 'political territorial entity'}] ['Úbeda', 'sister city', {'concept': 'type of french administrative division'}] ['Úbeda', 'sister city', {'concept': 'political territorial entity'}] ['Curitiba', 'sister city', {'concept': 'type of french administrative division'}] ['Curitiba', 'sister city', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Úbeda property:sister_city ?z } UNION { resource:Úbeda property:sister_city ?y } UNION { resource:Brescia property:sister_city ?z } UNION { resource:Brescia property:sister_city ?y } UNION { resource:Úbeda property:sister_city ?z } UNION { resource:Úbeda property:sister_city ?y } UNION { resource:Curitiba property:sister_city ?z } UNION { resource:Curitiba property:sister_city ?y } } . ?z rdf:type ontology:type_of_french_administrative_division . ?y rdf:type ontology:political_territorial_entity }
[]
type of french administrative division political territorial entity
Quantitative|Count|Mult. entity type|Clarification
Q4361
SYSTEM
Did you mean Curitiba ?
[ANSWER]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Q329984 property:P190 ?z } UNION { resource:Q329984 property:P190 ?y } UNION { resource:Q16860406 property:P190 ?z } UNION { resource:Q16860406 property:P190 ?y } UNION { resource:Q329984 property:P190 ?z } UNION { resource:Q329984 property:P190 ?y } UNION { resource:Q1849088 property:P190 ?z } UNION { resource:Q1849088 property:P190 ?y } } . ?z rdf:type ontology:Q20667921 . ?y rdf:type ontology:Q1048835 }
Did you mean Curitiba ?
Curitiba
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Úbeda property:sister_city ?z } UNION { resource:Úbeda property:sister_city ?y } UNION { resource:Brescia property:sister_city ?z } UNION { resource:Brescia property:sister_city ?y } UNION { resource:Úbeda property:sister_city ?z } UNION { resource:Úbeda property:sister_city ?y } UNION { resource:Curitiba property:sister_city ?z } UNION { resource:Curitiba property:sister_city ?y } } . ?z rdf:type ontology:type_of_french_administrative_division . ?y rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Úbeda. Could you tell me the answer for that?
(Q329984,P190,c(Q20667921)) (Q329984,P190,c(Q1048835)) (Q6221,P190,c(Q20667921)) (Q6221,P190,c(Q1048835)) (Q329984,P190,c(Q20667921)) (Q329984,P190,c(Q1048835)) (Q4361,P190,c(Q20667921)) (Q4361,P190,c(Q1048835))
Q329984
['Q329984', 'P190', {'concept': 'Q20667921'}] ['Q329984', 'P190', {'concept': 'Q1048835'}] ['Q6221', 'P190', {'concept': 'Q20667921'}] ['Q6221', 'P190', {'concept': 'Q1048835'}] ['Q329984', 'P190', {'concept': 'Q20667921'}] ['Q329984', 'P190', {'concept': 'Q1048835'}] ['Q4361', 'P190', {'concept': 'Q20667921'}] ['Q4361', 'P190', {'concept': 'Q1048835'}]
['Úbeda', 'sister city', {'concept': 'type of french administrative division'}] ['Úbeda', 'sister city', {'concept': 'political territorial entity'}] ['Brescia', 'sister city', {'concept': 'type of french administrative division'}] ['Brescia', 'sister city', {'concept': 'political territorial entity'}] ['Úbeda', 'sister city', {'concept': 'type of french administrative division'}] ['Úbeda', 'sister city', {'concept': 'political territorial entity'}] ['Curitiba', 'sister city', {'concept': 'type of french administrative division'}] ['Curitiba', 'sister city', {'concept': 'political territorial entity'}]
[]
SYSTEM
1 french administrative divisions and 2 political territories
Q201286 Q488555 Q277302
(Q329984,P190,c(Q20667921)) (Q329984,P190,c(Q1048835)) (Q6221,P190,c(Q20667921)) (Q6221,P190,c(Q1048835)) (Q329984,P190,c(Q20667921)) (Q329984,P190,c(Q1048835)) (Q4361,P190,c(Q20667921)) (Q4361,P190,c(Q1048835))
[ANSWER]
['Q329984', 'P190', {'concept': 'Q20667921'}] ['Q329984', 'P190', {'concept': 'Q1048835'}] ['Q6221', 'P190', {'concept': 'Q20667921'}] ['Q6221', 'P190', {'concept': 'Q1048835'}] ['Q329984', 'P190', {'concept': 'Q20667921'}] ['Q329984', 'P190', {'concept': 'Q1048835'}] ['Q4361', 'P190', {'concept': 'Q20667921'}] ['Q4361', 'P190', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Q329984 property:P190 ?z } UNION { resource:Q329984 property:P190 ?y } UNION { resource:Q16860406 property:P190 ?z } UNION { resource:Q16860406 property:P190 ?y } UNION { resource:Q329984 property:P190 ?z } UNION { resource:Q329984 property:P190 ?y } UNION { resource:Q1849088 property:P190 ?z } UNION { resource:Q1849088 property:P190 ?y } } . ?z rdf:type ontology:Q20667921 . ?y rdf:type ontology:Q1048835 }
Lège-Cap-Ferret Baeza Chiclana de la Frontera
1 french administrative divisions and 2 political territories
['Úbeda', 'sister city', {'concept': 'type of french administrative division'}] ['Úbeda', 'sister city', {'concept': 'political territorial entity'}] ['Brescia', 'sister city', {'concept': 'type of french administrative division'}] ['Brescia', 'sister city', {'concept': 'political territorial entity'}] ['Úbeda', 'sister city', {'concept': 'type of french administrative division'}] ['Úbeda', 'sister city', {'concept': 'political territorial entity'}] ['Curitiba', 'sister city', {'concept': 'type of french administrative division'}] ['Curitiba', 'sister city', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Úbeda property:sister_city ?z } UNION { resource:Úbeda property:sister_city ?y } UNION { resource:Brescia property:sister_city ?z } UNION { resource:Brescia property:sister_city ?y } UNION { resource:Úbeda property:sister_city ?z } UNION { resource:Úbeda property:sister_city ?y } UNION { resource:Curitiba property:sister_city ?z } UNION { resource:Curitiba property:sister_city ?y } } . ?z rdf:type ontology:type_of_french_administrative_division . ?y rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q329984
P30
Q2221906
USER
Which geographic location is Úbeda located in ?
(Q329984,P30,c(Q2221906))
action filter_type
action find
entity Q329984
relation P30
type Q2221906
['Q329984', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?h WHERE { resource:Q329984 property:P30 ?h . ?h rdf:type ontology:Q2221906 }
Úbeda
action filter_type
action find
entity Úbeda
relation continent
type geographic location
['Úbeda', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?h WHERE { resource:Úbeda property:continent ?h . ?h rdf:type ontology:geographic_location }
[]
geographic location
Q46
SYSTEM
Europe
Q46
(Q329984,P30,c(Q2221906))
action filter_type
action find
entity Q329984
relation P30
type Q2221906
Úbeda is located in [ANSWER]
['Q329984', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?h WHERE { resource:Q329984 property:P30 ?h . ?h rdf:type ontology:Q2221906 }
Europe
Úbeda is located in Europe
Europe
action filter_type
action find
entity Úbeda
relation continent
type geographic location
['Úbeda', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?h WHERE { resource:Úbeda property:continent ?h . ?h rdf:type ontology:geographic_location }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q2680554
Q2221906
USER
And how about Pesce Peninsula?
(Q2680554,P30,c(Q2221906))
action filter_type
action find
entity Q2680554
relation P30
type Q2221906
['Q2680554', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q2221906 . resource:Q2680554 property:P30 ?p }
Pesce Peninsula
action filter_type
action find
entity Pesce Peninsula
relation continent
type geographic location
['Pesce Peninsula', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:geographic_location . resource:Pesce_Peninsula property:continent ?p }
[]
geographic location
Q51
SYSTEM
Antarctica
Q51
(Q2680554,P30,c(Q2221906))
action filter_type
action find
entity Q2680554
relation P30
type Q2221906
[ANSWER]
['Q2680554', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q2221906 . resource:Q2680554 property:P30 ?p }
Antarctica
Antarctica
action filter_type
action find
entity Pesce Peninsula
relation continent
type geographic location
['Pesce Peninsula', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:geographic_location . resource:Pesce_Peninsula property:continent ?p }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q51 Q6253551 Q76754
P61
Q502895
USER
Was Antarctica invented or discovered by John Purcell and Fabian Gottlieb von Bellingshausen ?
(Q51,P61,Q6253551) (Q51,P61,Q76754)
action is_in
entity Q51
action intersection
action find_reverse
entity Q6253551
relation P61
action find_reverse
entity Q76754
relation P61
['Q51', 'P61', 'Q6253551'] ['Q51', 'P61', 'Q76754']
ASK WHERE { resource:Q51 property:P61 resource:Q6253551 . resource:Q51 property:P61 resource:Q76754 }
Antarctica John Purcell Fabian Gottlieb von Bellingshausen
action is_in
entity Antarctica
action intersection
action find_reverse
entity John Purcell
relation discoverer or inventor
action find_reverse
entity Fabian Gottlieb von Bellingshausen
relation discoverer or inventor
['Antarctica', 'discoverer or inventor', 'John Purcell'] ['Antarctica', 'discoverer or inventor', 'Fabian Gottlieb von Bellingshausen']
ASK WHERE { resource:Antarctica property:discoverer_or_inventor resource:John_Purcell . resource:Antarctica property:discoverer_or_inventor resource:Fabian_Gottlieb_von_Bellingshausen }
[]
common name
SYSTEM
NO and YES respectively
(Q51,P61,Q6253551) (Q51,P61,Q76754)
action is_in
entity Q51
action intersection
action find_reverse
entity Q6253551
relation P61
action find_reverse
entity Q76754
relation P61
[ANSWER]
['Q51', 'P61', 'Q6253551'] ['Q51', 'P61', 'Q76754']
ASK WHERE { resource:Q51 property:P61 resource:Q6253551 . resource:Q51 property:P61 resource:Q76754 }
NO and YES respectively
action is_in
entity Antarctica
action intersection
action find_reverse
entity John Purcell
relation discoverer or inventor
action find_reverse
entity Fabian Gottlieb von Bellingshausen
relation discoverer or inventor
['Antarctica', 'discoverer or inventor', 'John Purcell'] ['Antarctica', 'discoverer or inventor', 'Fabian Gottlieb von Bellingshausen']
ASK WHERE { resource:Antarctica property:discoverer_or_inventor resource:John_Purcell . resource:Antarctica property:discoverer_or_inventor resource:Fabian_Gottlieb_von_Bellingshausen }
[]