Simple Question (Direct)
Simple Question
Q3614129
P106
Q12737077
USER
What is the profession of Amerigo Crispo ?
(Q3614129,P106,c(Q12737077))
action filter_type
action find
entity Q3614129
relation P106
type Q12737077
['Q3614129', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { resource:Q3614129 property:P106 ?n . ?n rdf:type ontology:Q12737077 }
Amerigo Crispo
action filter_type
action find
entity Amerigo Crispo
relation occupation
type occupation
['Amerigo Crispo', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { resource:Amerigo_Crispo property:occupation ?n . ?n rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q3614129,P106,c(Q12737077))
action filter_type
action find
entity Q3614129
relation P106
type Q12737077
The profession of Amerigo Crispo is a [ANSWER]
['Q3614129', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { resource:Q3614129 property:P106 ?n . ?n rdf:type ontology:Q12737077 }
politician
The profession of Amerigo Crispo is a politician
politician
action filter_type
action find
entity Amerigo Crispo
relation occupation
type occupation
['Amerigo Crispo', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { resource:Amerigo_Crispo property:occupation ?n . ?n rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3614129
P1412
Q34770
USER
Which language can that person read ?
(Q82955,P1412,c(Q34770))
action filter_type
action find
entity Q3614129
relation P1412
type Q34770
['Q82955', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?x WHERE { resource:Q3614129 property:P1412 ?x . ?x rdf:type ontology:Q34770 }
Amerigo Crispo
action filter_type
action find
entity Amerigo Crispo
relation languages spoken, written or signed
type language
['politician', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?x WHERE { resource:Amerigo_Crispo property:languages_spoken,_written_or_signed ?x . ?x rdf:type ontology:language }
[]
language
Q652
SYSTEM
Italian
Q652
(Q82955,P1412,c(Q34770))
action filter_type
action find
entity Q3614129
relation P1412
type Q34770
That person can read the [ANSWER]
['Q82955', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?x WHERE { resource:Q3614129 property:P1412 ?x . ?x rdf:type ontology:Q34770 }
Italian
That person can read the Italian
Italian
action filter_type
action find
entity Amerigo Crispo
relation languages spoken, written or signed
type language
['politician', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?x WHERE { resource:Amerigo_Crispo property:languages_spoken,_written_or_signed ?x . ?x rdf:type ontology:language }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3614129
P19
Q15617994
USER
Which administrative territory is the birthplace of that person ?
(Q652,P19,c(Q15617994))
action filter_type
action find
entity Q3614129
relation P19
type Q15617994
['Q652', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { resource:Q3614129 property:P19 ?r . ?r rdf:type ontology:Q15617994 }
Amerigo Crispo
action filter_type
action find
entity Amerigo Crispo
relation place of birth
type designation for an administrative territorial entity
['Italian', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Amerigo_Crispo property:place_of_birth ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q72036
SYSTEM
Cicciano
Q72036
(Q652,P19,c(Q15617994))
action filter_type
action find
entity Q3614129
relation P19
type Q15617994
[ANSWER] is the birthplace of that person
['Q652', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { resource:Q3614129 property:P19 ?r . ?r rdf:type ontology:Q15617994 }
Cicciano
Cicciano is the birthplace of that person
Cicciano
action filter_type
action find
entity Amerigo Crispo
relation place of birth
type designation for an administrative territorial entity
['Italian', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Amerigo_Crispo property:place_of_birth ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P17
Q15617994 Q811979 Q41176
USER
Which administrative territories are min number of architectural structures or buildings located in ?
(c(Q811979)|c(Q41176),P17,c(Q15617994))
action argmin
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q811979
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q41176
[[{'concept': 'Q811979'}, {'concept': 'Q41176'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?w ) AS ?l ) WHERE { ?w rdf:type ?p . VALUES ( ?p ) { ( ontology:Q811979 ) ( ontology:Q41176 ) } } GROUP BY ?e } . FILTER ( ?l = ?o ) . { SELECT DISTINCT ( MIN ( ?y ) AS ?o ) { SELECT DISTINCT ?b ( COUNT ( ?x ) AS ?y ) WHERE { { ?x property:P17 ?b . ?x rdf:type ontology:Q811979 . ?b rdf:type ontology:Q15617994 } UNION { ?x property:P17 ?b . ?b rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q41176 } } GROUP BY ?b } } }
action argmin
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type architectural structure
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type building
[[{'concept': 'architectural structure'}, {'concept': 'building'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?w ) AS ?l ) WHERE { ?w rdf:type ?p . VALUES ( ?p ) { ( ontology:architectural_structure ) ( ontology:building ) } } GROUP BY ?e } . FILTER ( ?l = ?o ) . { SELECT DISTINCT ( MIN ( ?y ) AS ?o ) { SELECT DISTINCT ?b ( COUNT ( ?x ) AS ?y ) WHERE { { ?x property:country ?b . ?x rdf:type ontology:architectural_structure . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?x property:country ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:building } } GROUP BY ?b } } }
[]
designation for an administrative territorial entity architectural structure building
Q1011 Q929 Q977
SYSTEM
Cape Verde, Central African Republic, Djibouti
Q1256 Q709 Q339952 Q270508 Q684030 Q2172530 Q12536 Q784 Q640426 Q36678 Q736029 Q710 Q565812 Q187035 Q1462 Q517333 Q2001966 Q326029 Q958 Q153529 Q695316 Q165040 Q315667 Q153136 Q1210 Q155019 Q107426 Q1282 Q159626 Q177323 Q313175 Q149621 Q34762 Q1458 Q3462133 Q815731 Q47261 Q977 Q704288 Q10957559 Q967 Q697 Q695 Q389004 Q1013 Q160307 Q164092 Q1483510 Q2662372 Q1005 Q829700 Q970 Q239502 Q15581 Q2380910 Q193152 Q655621 Q2502354 Q154849 Q159856 Q2621010 Q696651 Q148499 Q1011 Q8575586 Q529605 Q929 Q11024667 Q426025
(c(Q811979)|c(Q41176),P17,c(Q15617994))
action argmin
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q811979
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q41176
Min number of architectural structures or buildings are located in the [ANSWERS]
[[{'concept': 'Q811979'}, {'concept': 'Q41176'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?w ) AS ?l ) WHERE { ?w rdf:type ?p . VALUES ( ?p ) { ( ontology:Q811979 ) ( ontology:Q41176 ) } } GROUP BY ?e } . FILTER ( ?l = ?o ) . { SELECT DISTINCT ( MIN ( ?y ) AS ?o ) { SELECT DISTINCT ?b ( COUNT ( ?x ) AS ?y ) WHERE { { ?x property:P17 ?b . ?x rdf:type ontology:Q811979 . ?b rdf:type ontology:Q15617994 } UNION { ?x property:P17 ?b . ?b rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q41176 } } GROUP BY ?b } } }
Liguria Marshall Islands Principality of Orange-Nassau Andora Principality of Serbia Electorate of Württemberg Abbasid caliphate Dominica Stahnsdorf West Bank Nassau-Siegen Kiribati Principality of Calenberg Principality of Albania Sardinia Principality of Polotsk Company rule in India Duchy of Brunswick South Sudan Duchy of Milan Schwarzburg-Rudolstadt Duchy of Parma Saxe-Weimar Habsburg Empire Lombardy Duchy of Lorraine Anjou Lazio Württemberg developing country Saxe-Lauenburg district Principality of Bayreuth Calabria Saxe-Coburg and Gotha Principality of Bulgaria Duchy of Bavaria Djibouti Duchy of Holstein Moldavia Burundi Nauru Palau Wallachia Lesotho Fatimid caliphate Duchy of Saxony Principality of Wales Principality of Minsk Gambia Saxe-Jena Comoros Kingdom of Galicia–Volhynia Principality of Catalonia Duchy of Zaslawye Great Moravia Principality of Transylvania Principality of Goroden Grand Duchy of Tuscany Duchy of Brabant Principality of Vitebsk Saxe-Eisenach Margraviate of Brandenburg Cape Verde Umayyad Caliphate Electorate of Hesse Central African Republic Duchy of Mecklenburg-Schwerin Duchy of Savoy
Min number of architectural structures or buildings are located in the Cape Verde, Central African Republic and Djibouti
Cape Verde Central African Republic Djibouti
action argmin
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type architectural structure
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type building
[[{'concept': 'architectural structure'}, {'concept': 'building'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?w ) AS ?l ) WHERE { ?w rdf:type ?p . VALUES ( ?p ) { ( ontology:architectural_structure ) ( ontology:building ) } } GROUP BY ?e } . FILTER ( ?l = ?o ) . { SELECT DISTINCT ( MIN ( ?y ) AS ?o ) { SELECT DISTINCT ?b ( COUNT ( ?x ) AS ?y ) WHERE { { ?x property:country ?b . ?x rdf:type ontology:architectural_structure . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?x property:country ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:building } } GROUP BY ?b } } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q977
P36
Q56061
USER
Which administrative territory is the capital of that administrative territory ?
(Q977,P36,c(Q56061))
action filter_type
action find
entity Q977
relation P36
type Q56061
['Q977', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q56061 . resource:Q977 property:P36 ?a }
Djibouti
action filter_type
action find
entity Djibouti
relation capital
type administrative territorial entity
['Djibouti', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:administrative_territorial_entity . resource:Djibouti property:capital ?a }
[]
administrative territorial entity
Clarification for simple ques.
Q1011
SYSTEM
Did you mean Cape Verde ?
Q1011 Q929 Q977
(Q1011,P36,c(Q56061)) (Q929,P36,c(Q56061)) (Q977,P36,c(Q56061))
[ANSWER]
['Q1011', 'P36', {'concept': 'Q56061'}] ['Q929', 'P36', {'concept': 'Q56061'}] ['Q977', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q56061 . resource:Q977 property:P36 ?a }
Cape Verde Central African Republic Djibouti
Did you mean Cape Verde ?
Cape Verde
['Cape Verde', 'capital', {'concept': 'administrative territorial entity'}] ['Central African Republic', 'capital', {'concept': 'administrative territorial entity'}] ['Djibouti', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:administrative_territorial_entity . resource:Djibouti property:capital ?a }
[]
Simple Question (Coreferenced)
USER
No, I meant Djibouti. Could you tell me the answer for that?
(Q977,P36,c(Q56061))
Q977
['Q977', 'P36', {'concept': 'Q56061'}]
['Djibouti', 'capital', {'concept': 'administrative territorial entity'}]
[]
Q3604
SYSTEM
Djibouti
Q3604
(Q977,P36,c(Q56061))
action filter_type
action find
entity Q977
relation P36
type Q56061
[ANSWER] is the capital of that administrative territory
['Q977', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q56061 . resource:Q977 property:P36 ?a }
Djibouti
Djibouti is the capital of that administrative territory
Djibouti
action filter_type
action find
entity Djibouti
relation capital
type administrative territorial entity
['Djibouti', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:administrative_territorial_entity . resource:Djibouti property:capital ?a }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P159
Q895526 Q43229
USER
How many authority organs and organizations have their head office location at that administrative territory ?
(c(Q895526),P159,Q3604) (c(Q43229),P159,Q3604) (c(Q895526),P159,Q3604) (c(Q43229),P159,Q3604)
action count
action union
action filter_type
action find_reverse
entity Q3604
relation P159
type Q895526
action filter_type
action find_reverse
entity Q3604
relation P159
type Q43229
[{'concept': 'Q895526'}, 'P159', 'Q3604'] [{'concept': 'Q43229'}, 'P159', 'Q3604'] [{'concept': 'Q895526'}, 'P159', 'Q3604'] [{'concept': 'Q43229'}, 'P159', 'Q3604']
SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) WHERE { { ?h rdf:type ontology:Q895526 . ?h property:P159 resource:Q3604 } UNION { ?h rdf:type ontology:Q43229 . ?h property:P159 resource:Q3604 } }
action count
action union
action filter_type
action find_reverse
entity Djibouti
relation headquarters location
type authority organ
action filter_type
action find_reverse
entity Djibouti
relation headquarters location
type organization
[{'concept': 'authority organ'}, 'headquarters location', 'Djibouti'] [{'concept': 'organization'}, 'headquarters location', 'Djibouti'] [{'concept': 'authority organ'}, 'headquarters location', 'Djibouti'] [{'concept': 'organization'}, 'headquarters location', 'Djibouti']
SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) WHERE { { ?h rdf:type ontology:authority_organ . ?h property:headquarters_location resource:Djibouti } UNION { ?h rdf:type ontology:organization . ?h property:headquarters_location resource:Djibouti } }
[]
authority organ organization
SYSTEM
2 authority organs and 2 organizations
Q17003429 Q17069842 Q5285307 Q16978062
(c(Q895526),P159,Q3604) (c(Q43229),P159,Q3604) (c(Q895526),P159,Q3604) (c(Q43229),P159,Q3604)
action count
action union
action filter_type
action find_reverse
entity Q3604
relation P159
type Q895526
action filter_type
action find_reverse
entity Q3604
relation P159
type Q43229
[ANSWER]
[{'concept': 'Q895526'}, 'P159', 'Q3604'] [{'concept': 'Q43229'}, 'P159', 'Q3604'] [{'concept': 'Q895526'}, 'P159', 'Q3604'] [{'concept': 'Q43229'}, 'P159', 'Q3604']
SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) WHERE { { ?h rdf:type ontology:Q895526 . ?h property:P159 resource:Q3604 } UNION { ?h rdf:type ontology:Q43229 . ?h property:P159 resource:Q3604 } }
Al Gamil Regional Somali Language Academy Djibouti Telecom Ministry of Defence
2 authority organs and 2 organizations
action count
action union
action filter_type
action find_reverse
entity Djibouti
relation headquarters location
type authority organ
action filter_type
action find_reverse
entity Djibouti
relation headquarters location
type organization
[{'concept': 'authority organ'}, 'headquarters location', 'Djibouti'] [{'concept': 'organization'}, 'headquarters location', 'Djibouti'] [{'concept': 'authority organ'}, 'headquarters location', 'Djibouti'] [{'concept': 'organization'}, 'headquarters location', 'Djibouti']
SELECT DISTINCT ( COUNT ( ?h ) AS ?j ) WHERE { { ?h rdf:type ontology:authority_organ . ?h property:headquarters_location resource:Djibouti } UNION { ?h rdf:type ontology:organization . ?h property:headquarters_location resource:Djibouti } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q15617994 Q2342494 Q3305213
USER
Which administrative territories are demonstrated in around 2 collectables or paintings ?
(c(Q2342494)|c(Q3305213),P180,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q2342494
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q3305213
value 2
[[{'concept': 'Q2342494'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?t ) AS ?x ) WHERE { ?t rdf:type ?g . VALUES ( ?g ) { ( ontology:Q2342494 ) ( ontology:Q3305213 ) } } GROUP BY ?j } . FILTER ( ?x = 2 ) }
action approx
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type painting
value 2
[[{'concept': 'collectable'}, {'concept': 'painting'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?t ) AS ?x ) WHERE { ?t rdf:type ?g . VALUES ( ?g ) { ( ontology:collectable ) ( ontology:painting ) } } GROUP BY ?j } . FILTER ( ?x = 2 ) }
[]
designation for an administrative territorial entity collectable painting
Q131596 Q38 Q82025
SYSTEM
farm, Italy, horn
Q131596 Q38 Q82025
(c(Q2342494)|c(Q3305213),P180,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q2342494
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q3305213
value 2
[ANSWERS] are demonstrated in around 2 collectables or paintings
[[{'concept': 'Q2342494'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?t ) AS ?x ) WHERE { ?t rdf:type ?g . VALUES ( ?g ) { ( ontology:Q2342494 ) ( ontology:Q3305213 ) } } GROUP BY ?j } . FILTER ( ?x = 2 ) }
farm Italy horn
Farm, Italy and horn are demonstrated in around 2 collectables or paintings
farm Italy horn
action approx
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type painting
value 2
[[{'concept': 'collectable'}, {'concept': 'painting'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?t ) AS ?x ) WHERE { ?t rdf:type ?g . VALUES ( ?g ) { ( ontology:collectable ) ( ontology:painting ) } } GROUP BY ?j } . FILTER ( ?x = 2 ) }
[]