Simple Question (Direct)
Simple Question
Q3939954
P39
Q12737077
USER
What was the position held by Rodolfo Gigli ?
(Q3939954,P39,c(Q12737077))
action filter_type
action find
entity Q3939954
relation P39
type Q12737077
['Q3939954', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q3939954 property:P39 ?i . ?i rdf:type ontology:Q12737077 }
Rodolfo Gigli
action filter_type
action find
entity Rodolfo Gigli
relation position held
type occupation
['Rodolfo Gigli', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Rodolfo_Gigli property:position_held ?i . ?i rdf:type ontology:occupation }
[]
occupation
Q18558478
SYSTEM
member of the Chamber of Deputies of the Italian Republic
Q18558478
(Q3939954,P39,c(Q12737077))
action filter_type
action find
entity Q3939954
relation P39
type Q12737077
The position held by Rodolfo Gigli was a [ANSWER]
['Q3939954', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q3939954 property:P39 ?i . ?i rdf:type ontology:Q12737077 }
member of the Chamber of Deputies of the Italian Republic
The position held by Rodolfo Gigli was a member of the Chamber of Deputies of the Italian Republic
member of the Chamber of Deputies of the Italian Republic
action filter_type
action find
entity Rodolfo Gigli
relation position held
type occupation
['Rodolfo Gigli', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Rodolfo_Gigli property:position_held ?i . ?i rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q3839447 Q3939954
P937 P20
Q56061
USER
Which administrative territories are the locations where Rodolfo Gigli worked or did Luigi Carluccio expire ?
OR((Q3939954,P937,c(Q56061)), (Q3839447,P20,c(Q56061)))
action filter_type
action union
action find
entity Q3939954
relation P937
action find
entity Q3839447
relation P20
type Q56061
{'OR': [['Q3939954', 'P937', {'concept': 'Q56061'}], ['Q3839447', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q3939954 property:P937 ?e } UNION { resource:Q3839447 property:P20 ?e } } . ?e rdf:type ontology:Q56061 }
Luigi Carluccio Rodolfo Gigli
action filter_type
action union
action find
entity Rodolfo Gigli
relation work location
action find
entity Luigi Carluccio
relation place of death
type administrative territorial entity
{'OR': [['Rodolfo Gigli', 'work location', {'concept': 'administrative territorial entity'}], ['Luigi Carluccio', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Rodolfo_Gigli property:work_location ?e } UNION { resource:Luigi_Carluccio property:place_of_death ?e } } . ?e rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q174 Q220
SYSTEM
São Paulo, Rome
Q174 Q220
OR((Q3939954,P937,c(Q56061)), (Q3839447,P20,c(Q56061)))
action filter_type
action union
action find
entity Q3939954
relation P937
action find
entity Q3839447
relation P20
type Q56061
[ANSWERS] are the locations where Rodolfo Gigli worked or did Luigi Carluccio expire
{'OR': [['Q3939954', 'P937', {'concept': 'Q56061'}], ['Q3839447', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q3939954 property:P937 ?e } UNION { resource:Q3839447 property:P20 ?e } } . ?e rdf:type ontology:Q56061 }
São Paulo Rome
São Paulo and Rome are the locations where Rodolfo Gigli worked or did Luigi Carluccio expire
São Paulo Rome
action filter_type
action union
action find
entity Rodolfo Gigli
relation work location
action find
entity Luigi Carluccio
relation place of death
type administrative territorial entity
{'OR': [['Rodolfo Gigli', 'work location', {'concept': 'administrative territorial entity'}], ['Luigi Carluccio', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Rodolfo_Gigli property:work_location ?e } UNION { resource:Luigi_Carluccio property:place_of_death ?e } } . ?e rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q174 Q220
P1001
Q12737077
USER
Which occupations apply to jurisdiction over São Paulo and Rome ?
(c(Q12737077),P1001,Q174) (c(Q12737077),P1001,Q220)
action union
action filter_type
action find_reverse
entity Q174
relation P1001
type Q12737077
action filter_type
action find_reverse
entity Q220
relation P1001
type Q12737077
[{'concept': 'Q12737077'}, 'P1001', 'Q174'] [{'concept': 'Q12737077'}, 'P1001', 'Q220']
SELECT DISTINCT ?m WHERE { VALUES ( ?j ) { ( resource:Q220 ) ( resource:Q174 ) } . ?m property:P1001 ?j }
São Paulo Rome
action union
action filter_type
action find_reverse
entity São Paulo
relation applies to jurisdiction
type occupation
action filter_type
action find_reverse
entity Rome
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'São Paulo'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Rome']
SELECT DISTINCT ?m WHERE { VALUES ( ?j ) { ( resource:Rome ) ( resource:São_Paulo ) } . ?m property:applies_to_jurisdiction ?j }
[]
occupation
Q24255165 Q23936560
SYSTEM
Mayor of São Paulo, mayor of Rome
Q24255165 Q23936560
(c(Q12737077),P1001,Q174) (c(Q12737077),P1001,Q220)
action union
action filter_type
action find_reverse
entity Q174
relation P1001
type Q12737077
action filter_type
action find_reverse
entity Q220
relation P1001
type Q12737077
[ANSWERS] apply to jurisdiction over São Paulo and Rome
[{'concept': 'Q12737077'}, 'P1001', 'Q174'] [{'concept': 'Q12737077'}, 'P1001', 'Q220']
SELECT DISTINCT ?m WHERE { VALUES ( ?j ) { ( resource:Q220 ) ( resource:Q174 ) } . ?m property:P1001 ?j }
Mayor of São Paulo mayor of Rome
Mayor of São Paulo and mayor of Rome apply to jurisdiction over São Paulo and Rome
Mayor of São Paulo mayor of Rome
action union
action filter_type
action find_reverse
entity São Paulo
relation applies to jurisdiction
type occupation
action filter_type
action find_reverse
entity Rome
relation applies to jurisdiction
type occupation
[{'concept': 'occupation'}, 'applies to jurisdiction', 'São Paulo'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Rome']
SELECT DISTINCT ?m WHERE { VALUES ( ?j ) { ( resource:Rome ) ( resource:São_Paulo ) } . ?m property:applies_to_jurisdiction ?j }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q24255165 Q23936560
P39
Q502895
USER
Who held the position of those occupations ?
(c(Q502895),P39,Q24255165) (c(Q502895),P39,Q23936560)
action filter_type
action find_reverse
entity prev_answer
relation P39
type Q502895
[{'concept': 'Q502895'}, 'P39', 'Q24255165'] [{'concept': 'Q502895'}, 'P39', 'Q23936560']
SELECT DISTINCT ?i WHERE { ?i property:P39 ?p . ?i rdf:type ontology:Q502895 . VALUES ( ?p ) { ( resource:Q24255165 ) ( resource:Q23936560 ) } }
Mayor of São Paulo mayor of Rome
action filter_type
action find_reverse
entity prev_answer
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'Mayor of São Paulo'] [{'concept': 'common name'}, 'position held', 'mayor of Rome']
SELECT DISTINCT ?i WHERE { ?i property:position_held ?p . ?i rdf:type ontology:common_name . VALUES ( ?p ) { ( resource:Mayor_of_São_Paulo ) ( resource:mayor_of_Rome ) } }
[]
common name
Q319547 Q463614 Q23766020
SYSTEM
Walter Veltroni, Marta Suplicy, Virginia Raggi
Q10310619 Q379563 Q463614 Q2546210 Q199624 Q4776958 Q1669473 Q10353688 Q549835 Q1797226 Q7386110 Q310123 Q1857846 Q3069485 Q16561079 Q969336 Q3745090 Q3763169 Q3651503 Q3830723 Q16596315 Q3750383 Q3745159 Q16537085 Q3665531 Q3903938 Q4006393 Q23766020 Q3924128 Q3935951 Q16560097 Q16529883 Q698313 Q1394623 Q3614139 Q3779407 Q16590554 Q4002918 Q3938607 Q16552088 Q319547 Q16525144 Q16590246 Q3840074 Q3605412 Q3840006 Q3840007 Q3876364 Q1113476 Q751205 Q3946201 Q969393 Q405098 Q3749926 Q463130 Q3749648 Q16552104 Q535345 Q16559182 Q778445 Q16488077 Q4003498 Q3771907 Q16557263 Q16576357 Q3723992 Q3770842 Q3745089 Q3839146
(c(Q502895),P39,Q24255165) (c(Q502895),P39,Q23936560)
action filter_type
action find_reverse
entity prev_answer
relation P39
type Q502895
[ANSWERS] held the position of those occupations
[{'concept': 'Q502895'}, 'P39', 'Q24255165'] [{'concept': 'Q502895'}, 'P39', 'Q23936560']
SELECT DISTINCT ?i WHERE { ?i property:P39 ?p . ?i rdf:type ontology:Q502895 . VALUES ( ?p ) { ( resource:Q24255165 ) ( resource:Q23936560 ) } }
José Vicente Faria Lima José Serra Marta Suplicy Gilberto Kassab Adhemar de Barros Antonio Salim Curiati Mário Covas Francisco Prestes Maia Paulo Maluf Olavo Setúbal Régis de Oliveira Jânio Quadros Celso Pitta Fernando Haddad Giuseppe Troiani Michelangelo Caetani Filippo Andrea V Doria Pamphili Giangiacomo Borghese Camillo Finocchiaro Aprile Leopoldo Torlonia Riccardo Motta Francesco Pallavicini Filippo Cremonesi Carlo Palomba Cesare Salvarezza Pietro Giubilo Urbano Cioccetti Virginia Raggi Prospero Colonna Rinaldo Santini Giovanni Orgera Augusto Armellini Clelio Darida Franco Carraro Amerigo Petrucci Guido Orazio Di Carpegna Falconieri Pietro Venturi Ugo Vetere Roberto Bencivenga Enrico Cruciani Alibrandi Walter Veltroni Alessandro Guiccioli Piero Colonna Luigi Rava Adolfo Apolloni Luigi Petroselli Luigi Pianciani Nicola Signorello Onorato Caetani Giuseppe Bottai Salvatore Rebecchini Ernesto Nathan Ignazio Marino Francesco Diana Gianni Alemanno Francesco Boncompagni Ludovisi Enrico Galluppi Francesco Rutelli Giannetto Valli Giulio Carlo Argan Giovanni Angelini Umberto Tupini Glauco Della Porta Francesco Grispigni Mario De Cesare Emanuele Ruspoli, 1st Prince of Poggio Suasa Giuseppe Lunati Filippo Andrea VI Doria Pamphili Ludovico Spada Veralli Potenziani
Walter Veltroni, Marta Suplicy and Virginia Raggi held the position of those occupations
Walter Veltroni Marta Suplicy Virginia Raggi
action filter_type
action find_reverse
entity prev_answer
relation position held
type common name
[{'concept': 'common name'}, 'position held', 'Mayor of São Paulo'] [{'concept': 'common name'}, 'position held', 'mayor of Rome']
SELECT DISTINCT ?i WHERE { ?i property:position_held ?p . ?i rdf:type ontology:common_name . VALUES ( ?p ) { ( resource:Mayor_of_São_Paulo ) ( resource:mayor_of_Rome ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q319547
P27
Q15617994
USER
Which administrative territory does that person belong to ?
(Q319547,P27,c(Q15617994))
action filter_type
action find
entity Q319547
relation P27
type Q15617994
['Q319547', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q319547 property:P27 ?q . ?q rdf:type ontology:Q15617994 }
Walter Veltroni
action filter_type
action find
entity Walter Veltroni
relation country of citizenship
type designation for an administrative territorial entity
['Walter Veltroni', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Walter_Veltroni property:country_of_citizenship ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q463614
SYSTEM
Did you mean Marta Suplicy ?
Q319547 Q463614 Q23766020
(Q319547,P27,c(Q15617994)) (Q463614,P27,c(Q15617994)) (Q23766020,P27,c(Q15617994))
[ANSWER]
['Q319547', 'P27', {'concept': 'Q15617994'}] ['Q463614', 'P27', {'concept': 'Q15617994'}] ['Q23766020', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q319547 property:P27 ?q . ?q rdf:type ontology:Q15617994 }
Walter Veltroni Marta Suplicy Virginia Raggi
Did you mean Marta Suplicy ?
Marta Suplicy
['Walter Veltroni', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Marta Suplicy', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}] ['Virginia Raggi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Walter_Veltroni property:country_of_citizenship ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Walter Veltroni. Could you tell me the answer for that?
(Q319547,P27,c(Q15617994))
Q319547
['Q319547', 'P27', {'concept': 'Q15617994'}]
['Walter Veltroni', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
[]
Q38
SYSTEM
Italy
Q38
(Q319547,P27,c(Q15617994))
action filter_type
action find
entity Q319547
relation P27
type Q15617994
That person belongs to the [ANSWER]
['Q319547', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { resource:Q319547 property:P27 ?q . ?q rdf:type ontology:Q15617994 }
Italy
That person belongs to the Italy
Italy
action filter_type
action find
entity Walter Veltroni
relation country of citizenship
type designation for an administrative territorial entity
['Walter Veltroni', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Walter_Veltroni property:country_of_citizenship ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Difference|Multiple_Relation
Q103366 Q174
P190 P20
Q515
USER
Which cities are partner towns of São Paulo and are not the places of death of Peter Hohmann, Edler of Hohenthal ?
AND((Q174,P190,c(Q515)), NOT((Q103366,P20,c(Q515))))
action filter_type
action difference
action find
entity Q174
relation P190
action find
entity Q103366
relation P20
type Q515
{'AND': [['Q174', 'P190', {'concept': 'Q515'}], {'NOT': [['Q103366', 'P20', {'concept': 'Q515'}]]}]}
SELECT DISTINCT ?d WHERE { resource:Q174 property:P190 ?d . MINUS { resource:Q103366 property:P20 ?d } . ?d rdf:type ontology:Q515 }
Peter Hohmann, Edler of Hohenthal São Paulo
action filter_type
action difference
action find
entity São Paulo
relation sister city
action find
entity Peter Hohmann, Edler of Hohenthal
relation place of death
type city
{'AND': [['São Paulo', 'sister city', {'concept': 'city'}], {'NOT': [['Peter Hohmann, Edler of Hohenthal', 'place of death', {'concept': 'city'}]]}]}
SELECT DISTINCT ?d WHERE { resource:São_Paulo property:sister_city ?d . MINUS { resource:Peter_Hohmann,_Edler_of_Hohenthal property:place_of_death ?d } . ?d rdf:type ontology:city }
[]
city
Q2887 Q1953 Q1486 Q8684 Q8652
SYSTEM
Santiago, Yerevan, Buenos Aires, Seoul, Miami
Q2887 Q1953 Q1486 Q8684 Q8652
AND((Q174,P190,c(Q515)), NOT((Q103366,P20,c(Q515))))
action filter_type
action difference
action find
entity Q174
relation P190
action find
entity Q103366
relation P20
type Q515
[ANSWERS] are partner towns of São Paulo and are not the places of death of Peter Hohmann, Edler of Hohenthal
{'AND': [['Q174', 'P190', {'concept': 'Q515'}], {'NOT': [['Q103366', 'P20', {'concept': 'Q515'}]]}]}
SELECT DISTINCT ?d WHERE { resource:Q174 property:P190 ?d . MINUS { resource:Q103366 property:P20 ?d } . ?d rdf:type ontology:Q515 }
Santiago Yerevan Buenos Aires Seoul Miami
Santiago, Yerevan, Buenos Aires, Seoul and Miami are partner towns of São Paulo and are not the places of death of Peter Hohmann, Edler of Hohenthal
Santiago Yerevan Buenos Aires Seoul Miami
action filter_type
action difference
action find
entity São Paulo
relation sister city
action find
entity Peter Hohmann, Edler of Hohenthal
relation place of death
type city
{'AND': [['São Paulo', 'sister city', {'concept': 'city'}], {'NOT': [['Peter Hohmann, Edler of Hohenthal', 'place of death', {'concept': 'city'}]]}]}
SELECT DISTINCT ?d WHERE { resource:São_Paulo property:sister_city ?d . MINUS { resource:Peter_Hohmann,_Edler_of_Hohenthal property:place_of_death ?d } . ?d rdf:type ontology:city }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q174
P190
Q56061
USER
Are São Paulo a sister city of those ones ?
(Q174,P190,Q2887) (Q174,P190,Q1953) (Q174,P190,Q1486) (Q174,P190,Q8684) (Q174,P190,Q8652)
action is_in
entity prev_answer
action find
entity Q174
relation P190
['Q174', 'P190', 'Q2887'] ['Q174', 'P190', 'Q1953'] ['Q174', 'P190', 'Q1486'] ['Q174', 'P190', 'Q8684'] ['Q174', 'P190', 'Q8652']
ASK WHERE { VALUES ( ?u ) { ( resource:Q2887 ) ( resource:Q1953 ) ( resource:Q1486 ) } . resource:Q174 property:P190 ?u }
São Paulo
action is_in
entity prev_answer
action find
entity São Paulo
relation sister city
['São Paulo', 'sister city', 'Santiago'] ['São Paulo', 'sister city', 'Yerevan'] ['São Paulo', 'sister city', 'Buenos Aires'] ['São Paulo', 'sister city', 'Seoul'] ['São Paulo', 'sister city', 'Miami']
ASK WHERE { VALUES ( ?u ) { ( resource:Santiago ) ( resource:Yerevan ) ( resource:Buenos_Aires ) } . resource:São_Paulo property:sister_city ?u }
[]
administrative territorial entity
SYSTEM
YES
(Q174,P190,Q2887) (Q174,P190,Q1953) (Q174,P190,Q1486) (Q174,P190,Q8684) (Q174,P190,Q8652)
action is_in
entity prev_answer
action find
entity Q174
relation P190
[ANSWER]
['Q174', 'P190', 'Q2887'] ['Q174', 'P190', 'Q1953'] ['Q174', 'P190', 'Q1486'] ['Q174', 'P190', 'Q8684'] ['Q174', 'P190', 'Q8652']
ASK WHERE { VALUES ( ?u ) { ( resource:Q2887 ) ( resource:Q1953 ) ( resource:Q1486 ) } . resource:Q174 property:P190 ?u }
Yes
action is_in
entity prev_answer
action find
entity São Paulo
relation sister city
['São Paulo', 'sister city', 'Santiago'] ['São Paulo', 'sister city', 'Yerevan'] ['São Paulo', 'sister city', 'Buenos Aires'] ['São Paulo', 'sister city', 'Seoul'] ['São Paulo', 'sister city', 'Miami']
ASK WHERE { VALUES ( ?u ) { ( resource:Santiago ) ( resource:Yerevan ) ( resource:Buenos_Aires ) } . resource:São_Paulo property:sister_city ?u }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q319547 Q15310642
P25
Q502895
USER
Was Ivanka Kotnik the mother of Walter Veltroni ?
(Q319547,P25,Q15310642)
action is_in
entity Q15310642
action find
entity Q319547
relation P25
['Q319547', 'P25', 'Q15310642']
ASK WHERE { resource:Q319547 property:P25 resource:Q15310642 }
Walter Veltroni Ivanka Kotnik
action is_in
entity Ivanka Kotnik
action find
entity Walter Veltroni
relation mother
['Walter Veltroni', 'mother', 'Ivanka Kotnik']
ASK WHERE { resource:Walter_Veltroni property:mother resource:Ivanka_Kotnik }
[]
common name
SYSTEM
YES
(Q319547,P25,Q15310642)
action is_in
entity Q15310642
action find
entity Q319547
relation P25
[ANSWER]
['Q319547', 'P25', 'Q15310642']
ASK WHERE { resource:Q319547 property:P25 resource:Q15310642 }
Yes
action is_in
entity Ivanka Kotnik
action find
entity Walter Veltroni
relation mother
['Walter Veltroni', 'mother', 'Ivanka Kotnik']
ASK WHERE { resource:Walter_Veltroni property:mother resource:Ivanka_Kotnik }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q38 Q16
P530
Q1048835
USER
Does Canada have diplomatic relations with Italy ?
(Q38,P530,Q16)
action is_in
entity Q16
action find
entity Q38
relation P530
['Q38', 'P530', 'Q16']
ASK WHERE { resource:Q38 property:P530 resource:Q16 }
Italy Canada
action is_in
entity Canada
action find
entity Italy
relation diplomatic relation
['Italy', 'diplomatic relation', 'Canada']
ASK WHERE { resource:Italy property:diplomatic_relation resource:Canada }
[]
political territorial entity
SYSTEM
YES
(Q38,P530,Q16)
action is_in
entity Q16
action find
entity Q38
relation P530
[ANSWER]
['Q38', 'P530', 'Q16']
ASK WHERE { resource:Q38 property:P530 resource:Q16 }
Yes
action is_in
entity Canada
action find
entity Italy
relation diplomatic relation
['Italy', 'diplomatic relation', 'Canada']
ASK WHERE { resource:Italy property:diplomatic_relation resource:Canada }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q24255165 Q5187478 Q515340
P17
Q15617994
USER
Is Mayor of São Paulo located in Croft Mitchell and Grafenhausen ?
(Q24255165,P17,Q5187478) (Q24255165,P17,Q515340)
action is_in
entity Q24255165
action intersection
action find_reverse
entity Q5187478
relation P17
action find_reverse
entity Q515340
relation P17
['Q24255165', 'P17', 'Q5187478'] ['Q24255165', 'P17', 'Q515340']
ASK WHERE { resource:Q24255165 property:P17 resource:Q5187478 . resource:Q24255165 property:P17 resource:Q515340 }
Mayor of São Paulo Croft Mitchell Grafenhausen
action is_in
entity Mayor of São Paulo
action intersection
action find_reverse
entity Croft Mitchell
relation country
action find_reverse
entity Grafenhausen
relation country
['Mayor of São Paulo', 'country', 'Croft Mitchell'] ['Mayor of São Paulo', 'country', 'Grafenhausen']
ASK WHERE { resource:Mayor_of_São_Paulo property:country resource:Croft_Mitchell . resource:Mayor_of_São_Paulo property:country resource:Grafenhausen }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q24255165,P17,Q5187478) (Q24255165,P17,Q515340)
action is_in
entity Q24255165
action intersection
action find_reverse
entity Q5187478
relation P17
action find_reverse
entity Q515340
relation P17
[ANSWER]
['Q24255165', 'P17', 'Q5187478'] ['Q24255165', 'P17', 'Q515340']
ASK WHERE { resource:Q24255165 property:P17 resource:Q5187478 . resource:Q24255165 property:P17 resource:Q515340 }
No
action is_in
entity Mayor of São Paulo
action intersection
action find_reverse
entity Croft Mitchell
relation country
action find_reverse
entity Grafenhausen
relation country
['Mayor of São Paulo', 'country', 'Croft Mitchell'] ['Mayor of São Paulo', 'country', 'Grafenhausen']
ASK WHERE { resource:Mayor_of_São_Paulo property:country resource:Croft_Mitchell . resource:Mayor_of_São_Paulo property:country resource:Grafenhausen }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q8652 Q34820 Q5641010
P190
Q56061
USER
Is Miami a sister city of Santo Domingo and Halady ?
(Q8652,P190,Q34820) (Q8652,P190,Q5641010)
action is_in
entity Q8652
action intersection
action find_reverse
entity Q34820
relation P190
action find_reverse
entity Q5641010
relation P190
['Q8652', 'P190', 'Q34820'] ['Q8652', 'P190', 'Q5641010']
ASK WHERE { resource:Q8652 property:P190 resource:Q34820 . resource:Q8652 property:P190 resource:Q5641010 }
Miami Santo Domingo Halady
action is_in
entity Miami
action intersection
action find_reverse
entity Santo Domingo
relation sister city
action find_reverse
entity Halady
relation sister city
['Miami', 'sister city', 'Santo Domingo'] ['Miami', 'sister city', 'Halady']
ASK WHERE { resource:Miami property:sister_city resource:Santo_Domingo . resource:Miami property:sister_city resource:Halady }
[]
administrative territorial entity
SYSTEM
YES and NO respectively
(Q8652,P190,Q34820) (Q8652,P190,Q5641010)
action is_in
entity Q8652
action intersection
action find_reverse
entity Q34820
relation P190
action find_reverse
entity Q5641010
relation P190
[ANSWER]
['Q8652', 'P190', 'Q34820'] ['Q8652', 'P190', 'Q5641010']
ASK WHERE { resource:Q8652 property:P190 resource:Q34820 . resource:Q8652 property:P190 resource:Q5641010 }
YES and NO respectively
action is_in
entity Miami
action intersection
action find_reverse
entity Santo Domingo
relation sister city
action find_reverse
entity Halady
relation sister city
['Miami', 'sister city', 'Santo Domingo'] ['Miami', 'sister city', 'Halady']
ASK WHERE { resource:Miami property:sister_city resource:Santo_Domingo . resource:Miami property:sister_city resource:Halady }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P190
Q515 Q1048835
USER
How many political territories are a sister city of around 1 city ?
(c(Q1048835),P190,c(Q515))
action count
action approx
action find_tuple_counts
relation P190
type Q1048835
type Q515
value 1
[{'concept': 'Q1048835'}, 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?x ) WHERE { FILTER ( ?n = 1 ) . { SELECT DISTINCT ?b ( COUNT ( ?v ) AS ?n ) WHERE { ?b property:P190 ?v . ?b rdf:type ontology:Q1048835 . ?v rdf:type ontology:Q515 } GROUP BY ?b } }
action count
action approx
action find_tuple_counts
relation sister city
type political territorial entity
type city
value 1
[{'concept': 'political territorial entity'}, 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?x ) WHERE { FILTER ( ?n = 1 ) . { SELECT DISTINCT ?b ( COUNT ( ?v ) AS ?n ) WHERE { ?b property:sister_city ?v . ?b rdf:type ontology:political_territorial_entity . ?v rdf:type ontology:city } GROUP BY ?b } }
[]
city political territorial entity
SYSTEM
33
Q926713 Q433632 Q164867 Q4970 Q193780 Q478818 Q180981 Q15174 Q489839 Q840373 Q170322 Q42956 Q189848 Q1917834 Q572800 Q615722 Q696797 Q488555 Q5978 Q825883 Q11720 Q12534 Q353618 Q42780 Q5783 Q77433 Q318314 Q5826 Q240 Q201149 Q68744 Q714613 Q47593
(c(Q1048835),P190,c(Q515))
action count
action approx
action find_tuple_counts
relation P190
type Q1048835
type Q515
value 1
[ANSWER]
[{'concept': 'Q1048835'}, 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?x ) WHERE { FILTER ( ?n = 1 ) . { SELECT DISTINCT ?b ( COUNT ( ?v ) AS ?n ) WHERE { ?b property:P190 ?v . ?b rdf:type ontology:Q1048835 . ?v rdf:type ontology:Q515 } GROUP BY ?b } }
Parintins Santa Cruz de La Palma Rügen Hangzhou Almuñécar São José dos Pinhais Kirovohrad Oblast Shenzhen Torrejón de Ardoz Valdemoro Qingdao Harbin Guernica Albaida Alcañiz Santa Fe Balaguer Baeza Hildesheim Valls Shenyang Sant Pol de Mar Adeje Ningbo Andalusia Leganés Ipatinga Xi'an Brussels Fife Xiamen Serne Belém
33
action count
action approx
action find_tuple_counts
relation sister city
type political territorial entity
type city
value 1
[{'concept': 'political territorial entity'}, 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?x ) WHERE { FILTER ( ?n = 1 ) . { SELECT DISTINCT ?b ( COUNT ( ?v ) AS ?n ) WHERE { ?b property:sister_city ?v . ?b rdf:type ontology:political_territorial_entity . ?v rdf:type ontology:city } GROUP BY ?b } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1486
P190
Q852446 Q15617994
USER
How many US administrative territories or administrative territories are twin cities of Buenos Aires ?
(Q1486,P190,c(Q852446)) (Q1486,P190,c(Q15617994))
action count
action union
action filter_type
action find
entity Q1486
relation P190
type Q852446
action filter_type
action find
entity Q1486
relation P190
type Q15617994
['Q1486', 'P190', {'concept': 'Q852446'}] ['Q1486', 'P190', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) WHERE { { resource:Q1486 property:P190 ?q . ?q rdf:type ontology:Q852446 } UNION { resource:Q1486 property:P190 ?q . ?q rdf:type ontology:Q15617994 } }
Buenos Aires
action count
action union
action filter_type
action find
entity Buenos Aires
relation sister city
type administrative territorial entity of the United States
action filter_type
action find
entity Buenos Aires
relation sister city
type designation for an administrative territorial entity
['Buenos Aires', 'sister city', {'concept': 'administrative territorial entity of the United States'}] ['Buenos Aires', 'sister city', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) WHERE { { resource:Buenos_Aires property:sister_city ?q . ?q rdf:type ontology:administrative_territorial_entity_of_the_United_States } UNION { resource:Buenos_Aires property:sister_city ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
administrative territorial entity of the United States designation for an administrative territorial entity
SYSTEM
5
Q1397 Q1458 Q13373 Q1452 Q265528
(Q1486,P190,c(Q852446)) (Q1486,P190,c(Q15617994))
action count
action union
action filter_type
action find
entity Q1486
relation P190
type Q852446
action filter_type
action find
entity Q1486
relation P190
type Q15617994
[ANSWER]
['Q1486', 'P190', {'concept': 'Q852446'}] ['Q1486', 'P190', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) WHERE { { resource:Q1486 property:P190 ?q . ?q rdf:type ontology:Q852446 } UNION { resource:Q1486 property:P190 ?q . ?q rdf:type ontology:Q15617994 } }
Ohio Calabria Lucca Basilicata Serra Riccò
5
action count
action union
action filter_type
action find
entity Buenos Aires
relation sister city
type administrative territorial entity of the United States
action filter_type
action find
entity Buenos Aires
relation sister city
type designation for an administrative territorial entity
['Buenos Aires', 'sister city', {'concept': 'administrative territorial entity of the United States'}] ['Buenos Aires', 'sister city', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) WHERE { { resource:Buenos_Aires property:sister_city ?q . ?q rdf:type ontology:administrative_territorial_entity_of_the_United_States } UNION { resource:Buenos_Aires property:sister_city ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]