Simple Question (Direct)
Simple Question
Q9096733
P21
Q290
USER
Which sex does Xosé María Díaz Castro possess ?
(Q9096733,P21,c(Q290))
action filter_type
action find
entity Q9096733
relation P21
type Q290
['Q9096733', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { resource:Q9096733 property:P21 ?o . ?o rdf:type ontology:Q290 }
Xosé María Díaz Castro
action filter_type
action find
entity Xosé María Díaz Castro
relation gender
type sex
['Xosé María Díaz Castro', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { resource:Xosé_María_Díaz_Castro property:gender ?o . ?o rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q9096733,P21,c(Q290))
action filter_type
action find
entity Q9096733
relation P21
type Q290
Xosé María Díaz Castro possesses a [ANSWER]
['Q9096733', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { resource:Q9096733 property:P21 ?o . ?o rdf:type ontology:Q290 }
male
Xosé María Díaz Castro possesses a male
male
action filter_type
action find
entity Xosé María Díaz Castro
relation gender
type sex
['Xosé María Díaz Castro', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { resource:Xosé_María_Díaz_Castro property:gender ?o . ?o rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q9096733
P1412
Q34770
USER
Which language is spoken by Xosé María Díaz Castro ?
(Q9096733,P1412,c(Q34770))
action filter_type
action find
entity Q9096733
relation P1412
type Q34770
['Q9096733', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?s WHERE { resource:Q9096733 property:P1412 ?s . ?s rdf:type ontology:Q34770 }
Xosé María Díaz Castro
action filter_type
action find
entity Xosé María Díaz Castro
relation languages spoken, written or signed
type language
['Xosé María Díaz Castro', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?s WHERE { resource:Xosé_María_Díaz_Castro property:languages_spoken,_written_or_signed ?s . ?s rdf:type ontology:language }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q9096733,P1412,c(Q34770))
action filter_type
action find
entity Q9096733
relation P1412
type Q34770
Is [ANSWER] is spoken by Xosé María Díaz Castro
['Q9096733', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?s WHERE { resource:Q9096733 property:P1412 ?s . ?s rdf:type ontology:Q34770 }
Spanish
Is Spanish is spoken by Xosé María Díaz Castro
Spanish
action filter_type
action find
entity Xosé María Díaz Castro
relation languages spoken, written or signed
type language
['Xosé María Díaz Castro', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?s WHERE { resource:Xosé_María_Díaz_Castro property:languages_spoken,_written_or_signed ?s . ?s rdf:type ontology:language }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q792
P37
Q34770 Q15617994
USER
Which administrative territories are lesser number of languages the official language of than El Salvador ?
(c(Q15617994),P37,c(Q34770))
action less
action find_tuple_counts
relation P37
type Q15617994
type Q34770
action count
action filter_type
action find
entity Q792
relation P37
type Q34770
[{'concept': 'Q15617994'}, 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?y ) AS ?s ) WHERE { ?r property:P37 ?y . ?r rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q34770 } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?e ) WHERE { ?b rdf:type ontology:Q34770 . resource:Q792 property:P37 ?b } } . FILTER ( ?s < ?e ) }
El Salvador
action less
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type language
action count
action filter_type
action find
entity El Salvador
relation official language
type language
[{'concept': 'designation for an administrative territorial entity'}, 'official language', {'concept': 'language'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?y ) AS ?s ) WHERE { ?r property:official_language ?y . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:language } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?e ) WHERE { ?b rdf:type ontology:language . resource:El_Salvador property:official_language ?b } } . FILTER ( ?s < ?e ) }
[]
language designation for an administrative territorial entity
Q155 Q30 Q230
SYSTEM
Brazil, United States of America, Georgia
Q805 Q801 Q473259 Q398 Q142 Q1039 Q21671144 Q32 Q12536 Q262 Q148 Q265 Q30 Q37 Q16006 Q711 Q837 Q252 Q2068764 Q21850324 Q403 Q657 Q45 Q159 Q43 Q41 Q155 Q673813 Q790 Q4628 Q796 Q794 Q669945 Q884 Q881 Q503181 Q219 Q826 Q247613 Q603392 Q33 Q921 Q31 Q36 Q34 Q929 Q165934 Q423 Q889 Q851 Q29999 Q854 Q819 Q253445 Q424 Q730 Q236 Q230 Q232 Q20 Q1045 Q1041 Q28 Q21853467 Q189 Q842 Q184 Q1029 Q1028 Q228 Q227 Q225 Q224 Q223 Q222 Q221 Q229 Q347 Q17 Q10957559 Q902 Q974 Q1032 Q191 Q965 Q967 Q962 Q697 Q115 Q59118 Q212 Q211 Q217 Q214 Q215 Q218 Q160307 Q1483510 Q912 Q917 Q916 Q1007 Q1006 Q977 Q1008 Q971 Q970 Q836 Q574 Q637451 Q874 Q3365904 Q79 Q858 Q199688 Q878 Q948 Q817 Q810 Q770 Q813 Q1016 Q1011 Q945 Q8575586 Q21848848 Q176 Q61698 Q822 Q863 Q869 Q1230929
(c(Q15617994),P37,c(Q34770))
action less
action find_tuple_counts
relation P37
type Q15617994
type Q34770
action count
action filter_type
action find
entity Q792
relation P37
type Q34770
[ANSWERS] are lesser number of languages the official language of than El Salvador
[{'concept': 'Q15617994'}, 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?y ) AS ?s ) WHERE { ?r property:P37 ?y . ?r rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q34770 } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?e ) WHERE { ?b rdf:type ontology:Q34770 . resource:Q792 property:P37 ?b } } . FILTER ( ?s < ?e ) }
Yemen Israel Ammerthal Bahrain France Sao Tomé and Príncipe Mezhetchina Luxembourg Abbasid caliphate Algeria People's Republic of China Uzbekistan United States of America Lithuania Goch Mongolia Nepal Indonesia Archa Darugha Gireyevo Serbia Chad Portugal Russia Turkey Greece Brazil Euratsfeld Haiti Faroe Islands Iraq Iran Vorau South Korea Vietnam Herzberg am Harz Bulgaria Maldives Bernese Jura Schönwalde Finland Brunei Belgium Poland Sweden Central African Republic Bokensdorf North Korea Afghanistan Saudi Arabia Kingdom of the Netherlands Sri Lanka Laos Kolbermoor Cambodia Suriname Montenegro Georgia Kazakhstan Norway Somalia Senegal Hungary Romanovo Iceland Oman Belarus Mozambique Morocco Andorra Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Cyprus Liechtenstein Japan Moldavia Bangladesh Democratic Republic of the Congo Niger Estonia Burkina Faso Burundi Benin Nauru Ethiopia Aappilattoq Ukraine Latvia Republic of Moldova Slovakia Slovenia Romania Fatimid caliphate Principality of Wales Mali Bhutan Angola Guinea-Bissau Guinea Djibouti Côte d'Ivoire Republic of the Congo Comoros Myanmar East Timor Rohrbach Turkmenistan Saint-Léonard Parish, New Brunswick Egypt Syria Almohad United Arab Emirates Tunisia Kuwait Jordan Friesland Kyrgyzstan Libya Cape Verde Togo Umayyad Caliphate Lyskovo Quebec Büsingen Lebanon Tajikistan Thailand Kesklinn
Brazil, United States of America and Georgia are lesser number of languages the official language of than El Salvador
Brazil United States of America Georgia
action less
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type language
action count
action filter_type
action find
entity El Salvador
relation official language
type language
[{'concept': 'designation for an administrative territorial entity'}, 'official language', {'concept': 'language'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?y ) AS ?s ) WHERE { ?r property:official_language ?y . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:language } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?e ) WHERE { ?b rdf:type ontology:language . resource:El_Salvador property:official_language ?b } } . FILTER ( ?s < ?e ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q298
P37
Q34770 Q15617994
USER
And also tell me about Chile?
(c(Q15617994),P37,c(Q34770))
action less
action find_tuple_counts
relation P37
type Q15617994
type Q34770
action count
action filter_type
action find
entity Q298
relation P37
type Q34770
[{'concept': 'Q15617994'}, 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?w ) AS ?i ) WHERE { ?w rdf:type ontology:Q34770 . ?h rdf:type ontology:Q15617994 . ?h property:P37 ?w } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?o ) WHERE { ?b rdf:type ontology:Q34770 . resource:Q298 property:P37 ?b } } . FILTER ( ?i < ?o ) }
Chile
action less
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type language
action count
action filter_type
action find
entity Chile
relation official language
type language
[{'concept': 'designation for an administrative territorial entity'}, 'official language', {'concept': 'language'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?w ) AS ?i ) WHERE { ?w rdf:type ontology:language . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h property:official_language ?w } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?o ) WHERE { ?b rdf:type ontology:language . resource:Chile property:official_language ?b } } . FILTER ( ?i < ?o ) }
[]
language designation for an administrative territorial entity
Q155 Q30 Q230
SYSTEM
Brazil, United States of America, Georgia
Q805 Q801 Q473259 Q398 Q142 Q1039 Q21671144 Q32 Q12536 Q262 Q148 Q265 Q30 Q37 Q16006 Q711 Q837 Q252 Q2068764 Q21850324 Q403 Q657 Q45 Q159 Q43 Q41 Q155 Q673813 Q790 Q4628 Q796 Q794 Q669945 Q884 Q881 Q503181 Q219 Q826 Q247613 Q603392 Q33 Q921 Q31 Q36 Q34 Q929 Q165934 Q423 Q889 Q851 Q29999 Q854 Q819 Q253445 Q424 Q730 Q236 Q230 Q232 Q20 Q1045 Q1041 Q28 Q21853467 Q189 Q842 Q184 Q1029 Q1028 Q228 Q227 Q225 Q224 Q223 Q222 Q221 Q229 Q347 Q17 Q10957559 Q902 Q974 Q1032 Q191 Q965 Q967 Q962 Q697 Q115 Q59118 Q212 Q211 Q217 Q214 Q215 Q218 Q160307 Q1483510 Q912 Q917 Q916 Q1007 Q1006 Q977 Q1008 Q971 Q970 Q836 Q574 Q637451 Q874 Q3365904 Q79 Q858 Q199688 Q878 Q948 Q817 Q810 Q770 Q813 Q1016 Q1011 Q945 Q8575586 Q21848848 Q176 Q61698 Q822 Q863 Q869 Q1230929
(c(Q15617994),P37,c(Q34770))
action less
action find_tuple_counts
relation P37
type Q15617994
type Q34770
action count
action filter_type
action find
entity Q298
relation P37
type Q34770
[ANSWERS]
[{'concept': 'Q15617994'}, 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?w ) AS ?i ) WHERE { ?w rdf:type ontology:Q34770 . ?h rdf:type ontology:Q15617994 . ?h property:P37 ?w } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?o ) WHERE { ?b rdf:type ontology:Q34770 . resource:Q298 property:P37 ?b } } . FILTER ( ?i < ?o ) }
Yemen Israel Ammerthal Bahrain France Sao Tomé and Príncipe Mezhetchina Luxembourg Abbasid caliphate Algeria People's Republic of China Uzbekistan United States of America Lithuania Goch Mongolia Nepal Indonesia Archa Darugha Gireyevo Serbia Chad Portugal Russia Turkey Greece Brazil Euratsfeld Haiti Faroe Islands Iraq Iran Vorau South Korea Vietnam Herzberg am Harz Bulgaria Maldives Bernese Jura Schönwalde Finland Brunei Belgium Poland Sweden Central African Republic Bokensdorf North Korea Afghanistan Saudi Arabia Kingdom of the Netherlands Sri Lanka Laos Kolbermoor Cambodia Suriname Montenegro Georgia Kazakhstan Norway Somalia Senegal Hungary Romanovo Iceland Oman Belarus Mozambique Morocco Andorra Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Cyprus Liechtenstein Japan Moldavia Bangladesh Democratic Republic of the Congo Niger Estonia Burkina Faso Burundi Benin Nauru Ethiopia Aappilattoq Ukraine Latvia Republic of Moldova Slovakia Slovenia Romania Fatimid caliphate Principality of Wales Mali Bhutan Angola Guinea-Bissau Guinea Djibouti Côte d'Ivoire Republic of the Congo Comoros Myanmar East Timor Rohrbach Turkmenistan Saint-Léonard Parish, New Brunswick Egypt Syria Almohad United Arab Emirates Tunisia Kuwait Jordan Friesland Kyrgyzstan Libya Cape Verde Togo Umayyad Caliphate Lyskovo Quebec Büsingen Lebanon Tajikistan Thailand Kesklinn
Brazil United States of America Georgia
action less
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type language
action count
action filter_type
action find
entity Chile
relation official language
type language
[{'concept': 'designation for an administrative territorial entity'}, 'official language', {'concept': 'language'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?w ) AS ?i ) WHERE { ?w rdf:type ontology:language . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h property:official_language ?w } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?o ) WHERE { ?b rdf:type ontology:language . resource:Chile property:official_language ?b } } . FILTER ( ?i < ?o ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories have diplomatic relations with min number of administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?h ) AS ?v ) WHERE { ?x rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q15617994 . ?x property:P530 ?h } GROUP BY ?x } . FILTER ( ?v = ?d ) . { SELECT DISTINCT ( MIN ( ?g ) AS ?d ) { SELECT DISTINCT ?m ( COUNT ( ?o ) AS ?g ) WHERE { ?m property:P530 ?o . ?m rdf:type ontology:Q1048835 . ?o rdf:type ontology:Q15617994 } GROUP BY ?m } } }
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?h ) AS ?v ) WHERE { ?x rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x property:diplomatic_relation ?h } GROUP BY ?x } . FILTER ( ?v = ?d ) . { SELECT DISTINCT ( MIN ( ?g ) AS ?d ) { SELECT DISTINCT ?m ( COUNT ( ?o ) AS ?g ) WHERE { ?m property:diplomatic_relation ?o . ?m rdf:type ontology:political_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } } }
[]
designation for an administrative territorial entity political territorial entity
Q1000 Q769 Q691
SYSTEM
Gabon, Grenada, Papua New Guinea
Q1000 Q781 Q778 Q769 Q685 Q691
(c(Q1048835),P530,c(Q15617994))
action argmin
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[ANSWERS] have diplomatic relations with min number of administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?h ) AS ?v ) WHERE { ?x rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q15617994 . ?x property:P530 ?h } GROUP BY ?x } . FILTER ( ?v = ?d ) . { SELECT DISTINCT ( MIN ( ?g ) AS ?d ) { SELECT DISTINCT ?m ( COUNT ( ?o ) AS ?g ) WHERE { ?m property:P530 ?o . ?m rdf:type ontology:Q1048835 . ?o rdf:type ontology:Q15617994 } GROUP BY ?m } } }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea
Gabon, Grenada and Papua New Guinea have diplomatic relations with min number of administrative territories
Gabon Grenada Papua New Guinea
action argmin
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?h ) AS ?v ) WHERE { ?x rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x property:diplomatic_relation ?h } GROUP BY ?x } . FILTER ( ?v = ?d ) . { SELECT DISTINCT ( MIN ( ?g ) AS ?d ) { SELECT DISTINCT ?m ( COUNT ( ?o ) AS ?g ) WHERE { ?m property:diplomatic_relation ?o . ?m rdf:type ontology:political_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q15617994
USER
Which administrative territories have tactful political relations with min number of political territories ?
(c(Q15617994),P530,c(Q1048835))
action argmin
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?w ) AS ?a ) WHERE { ?w rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q15617994 . ?q property:P530 ?w } GROUP BY ?q } . FILTER ( ?a = ?m ) . { SELECT DISTINCT ( MIN ( ?d ) AS ?m ) { SELECT DISTINCT ?j ( COUNT ( ?z ) AS ?d ) WHERE { ?j property:P530 ?z . ?z rdf:type ontology:Q1048835 . ?j rdf:type ontology:Q15617994 } GROUP BY ?j } } }
action argmin
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?w ) AS ?a ) WHERE { ?w rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q property:diplomatic_relation ?w } GROUP BY ?q } . FILTER ( ?a = ?m ) . { SELECT DISTINCT ( MIN ( ?d ) AS ?m ) { SELECT DISTINCT ?j ( COUNT ( ?z ) AS ?d ) WHERE { ?j property:diplomatic_relation ?z . ?z rdf:type ontology:political_territorial_entity . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?j } } }
[]
political territorial entity designation for an administrative territorial entity
Q805 Q858 Q842
SYSTEM
Yemen, Syria, Oman
Q805 Q399 Q398 Q790 Q236 Q842 Q858
(c(Q15617994),P530,c(Q1048835))
action argmin
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
[ANSWERS] have tactful political relations with min number of political territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?w ) AS ?a ) WHERE { ?w rdf:type ontology:Q1048835 . ?q rdf:type ontology:Q15617994 . ?q property:P530 ?w } GROUP BY ?q } . FILTER ( ?a = ?m ) . { SELECT DISTINCT ( MIN ( ?d ) AS ?m ) { SELECT DISTINCT ?j ( COUNT ( ?z ) AS ?d ) WHERE { ?j property:P530 ?z . ?z rdf:type ontology:Q1048835 . ?j rdf:type ontology:Q15617994 } GROUP BY ?j } } }
Yemen Armenia Bahrain Haiti Montenegro Oman Syria
Yemen, Syria and Oman have tactful political relations with min number of political territories
Yemen Syria Oman
action argmin
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?w ) AS ?a ) WHERE { ?w rdf:type ontology:political_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q property:diplomatic_relation ?w } GROUP BY ?q } . FILTER ( ?a = ?m ) . { SELECT DISTINCT ( MIN ( ?d ) AS ?m ) { SELECT DISTINCT ?j ( COUNT ( ?z ) AS ?d ) WHERE { ?j property:diplomatic_relation ?z . ?z rdf:type ontology:political_territorial_entity . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?j } } }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P36
Q515
USER
How many cities are called the capital of that administrative territory ?
(Q842,P36,c(Q515))
['Q842', 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q842 property:Q8137 ?z . ?z rdf:type ontology:Q7930989 }
['Oman', 'capital', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Oman property:capital ?z . ?z rdf:type ontology:city }
[]
city
Quantitative|Count|Single entity type|Clarification
Q858
SYSTEM
Did you mean Syria ?
(Q805,P36,c(Q515)) (Q858,P36,c(Q515)) (Q842,P36,c(Q515))
[ANSWER]
['Q805', 'P36', {'concept': 'Q515'}] ['Q858', 'P36', {'concept': 'Q515'}] ['Q842', 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q842 property:Q8137 ?z . ?z rdf:type ontology:Q7930989 }
Did you mean Syria ?
Syria
['Yemen', 'capital', {'concept': 'city'}] ['Syria', 'capital', {'concept': 'city'}] ['Oman', 'capital', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Oman property:capital ?z . ?z rdf:type ontology:city }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Oman. Could you tell me the answer for that?
(Q842,P36,c(Q515))
Q842
['Q842', 'P36', {'concept': 'Q515'}]
['Oman', 'capital', {'concept': 'city'}]
[]
SYSTEM
1
Q3826
(Q842,P36,c(Q515))
[ANSWER]
['Q842', 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q842 property:Q8137 ?z . ?z rdf:type ontology:Q7930989 }
Muscat
1
['Oman', 'capital', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Oman property:capital ?z . ?z rdf:type ontology:city }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q858
P463
Q43229
USER
Which organizations were Syria a member of ?
(Q858,P463,c(Q43229))
action filter_type
action find
entity Q858
relation P463
type Q43229
['Q858', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ?s WHERE { resource:Q858 property:P463 ?s . ?s rdf:type ontology:Q43229 }
Syria
action filter_type
action find
entity Syria
relation member of
type organization
['Syria', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ?s WHERE { resource:Syria property:member_of ?s . ?s rdf:type ontology:organization }
[]
organization
Q191384 Q624307 Q656801
SYSTEM
International Bank for Reconstruction and Development, Arab Monetary Fund, International Finance Corporation
Q624307 Q191384 Q656801 Q899770 Q827525
(Q858,P463,c(Q43229))
action filter_type
action find
entity Q858
relation P463
type Q43229
Syria were the [ANSWERS]
['Q858', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ?s WHERE { resource:Q858 property:P463 ?s . ?s rdf:type ontology:Q43229 }
Arab Monetary Fund International Bank for Reconstruction and Development International Finance Corporation International Centre for Settlement of Investment Disputes International Development Association
Syria were the International Bank for Reconstruction and Development, Arab Monetary Fund and International Finance Corporation
International Bank for Reconstruction and Development Arab Monetary Fund International Finance Corporation
action filter_type
action find
entity Syria
relation member of
type organization
['Syria', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ?s WHERE { resource:Syria property:member_of ?s . ?s rdf:type ontology:organization }
[]
Clarification
Simple Question|Single Entity|Indirect
Q191384
P17
Q15617994
USER
Which administrative territory is that organization situated in ?
(Q191384,P17,c(Q15617994))
action filter_type
action find
entity Q191384
relation P17
type Q15617994
['Q191384', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q15617994 . resource:Q191384 property:P17 ?r }
International Bank for Reconstruction and Development
action filter_type
action find
entity International Bank for Reconstruction and Development
relation country
type designation for an administrative territorial entity
['International Bank for Reconstruction and Development', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:International_Bank_for_Reconstruction_and_Development property:country ?r }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q624307
SYSTEM
Did you mean Arab Monetary Fund ?
Q191384 Q624307 Q656801
(Q191384,P17,c(Q15617994)) (Q624307,P17,c(Q15617994)) (Q656801,P17,c(Q15617994))
[ANSWER]
['Q191384', 'P17', {'concept': 'Q15617994'}] ['Q624307', 'P17', {'concept': 'Q15617994'}] ['Q656801', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q15617994 . resource:Q191384 property:P17 ?r }
International Bank for Reconstruction and Development Arab Monetary Fund International Finance Corporation
Did you mean Arab Monetary Fund ?
Arab Monetary Fund
['International Bank for Reconstruction and Development', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Arab Monetary Fund', 'country', {'concept': 'designation for an administrative territorial entity'}] ['International Finance Corporation', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:International_Bank_for_Reconstruction_and_Development property:country ?r }
[]
Simple Question (Coreferenced)
USER
No, I meant International Bank for Reconstruction and Development. Could you tell me the answer for that?
(Q191384,P17,c(Q15617994))
Q191384
['Q191384', 'P17', {'concept': 'Q15617994'}]
['International Bank for Reconstruction and Development', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
Q30
SYSTEM
United States of America
Q30
(Q191384,P17,c(Q15617994))
action filter_type
action find
entity Q191384
relation P17
type Q15617994
That organization is situated in [ANSWER]
['Q191384', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q15617994 . resource:Q191384 property:P17 ?r }
United States of America
That organization is situated in United States of America
United States of America
action filter_type
action find
entity International Bank for Reconstruction and Development
relation country
type designation for an administrative territorial entity
['International Bank for Reconstruction and Development', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:International_Bank_for_Reconstruction_and_Development property:country ?r }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q805
P85
Q484692
USER
What is the anthem for Yemen ?
(Q805,P85,c(Q484692))
action filter_type
action find
entity Q805
relation P85
type Q484692
['Q805', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?h WHERE { resource:Q805 property:P85 ?h . ?h rdf:type ontology:Q484692 }
Yemen
action filter_type
action find
entity Yemen
relation anthem
type hymn
['Yemen', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?h WHERE { resource:Yemen property:anthem ?h . ?h rdf:type ontology:hymn }
[]
hymn
Q203048
SYSTEM
National anthem of Yemen
Q203048
(Q805,P85,c(Q484692))
action filter_type
action find
entity Q805
relation P85
type Q484692
The anthem for Yemen is the [ANSWER]
['Q805', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?h WHERE { resource:Q805 property:P85 ?h . ?h rdf:type ontology:Q484692 }
National anthem of Yemen
The anthem for Yemen is the National anthem of Yemen
National anthem of Yemen
action filter_type
action find
entity Yemen
relation anthem
type hymn
['Yemen', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?h WHERE { resource:Yemen property:anthem ?h . ?h rdf:type ontology:hymn }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5971
Q484692
USER
And also tell me about Altai Republic?
(Q5971,P85,c(Q484692))
action filter_type
action find
entity Q5971
relation P85
type Q484692
['Q5971', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?q WHERE { resource:Q5971 property:P85 ?q . ?q rdf:type ontology:Q484692 }
Altai Republic
action filter_type
action find
entity Altai Republic
relation anthem
type hymn
['Altai Republic', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?q WHERE { resource:Altai_Republic property:anthem ?q . ?q rdf:type ontology:hymn }
[]
hymn
Q2666285
SYSTEM
National Anthem of the Altai Republic
Q2666285
(Q5971,P85,c(Q484692))
action filter_type
action find
entity Q5971
relation P85
type Q484692
[ANSWER]
['Q5971', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?q WHERE { resource:Q5971 property:P85 ?q . ?q rdf:type ontology:Q484692 }
National Anthem of the Altai Republic
National Anthem of the Altai Republic
action filter_type
action find
entity Altai Republic
relation anthem
type hymn
['Altai Republic', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?q WHERE { resource:Altai_Republic property:anthem ?q . ?q rdf:type ontology:hymn }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories have a diplomatic relationship with exactly 1 administrative territory ?
(c(Q15617994),P530,c(Q1048835))
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 1
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?m ) AS ?v ) WHERE { ?q property:P530 ?m . ?m rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q1048835 } GROUP BY ?q } . FILTER ( ?v = 1 ) }
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?m ) AS ?v ) WHERE { ?q property:diplomatic_relation ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:political_territorial_entity } GROUP BY ?q } . FILTER ( ?v = 1 ) }
[]
political territorial entity designation for an administrative territorial entity
Q1000 Q769 Q778
SYSTEM
Gabon, Grenada, The Bahamas
Q1000 Q781 Q778 Q769
(c(Q15617994),P530,c(Q1048835))
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 1
[ANSWERS] have a diplomatic relationship with exactly 1 administrative territory
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?m ) AS ?v ) WHERE { ?q property:P530 ?m . ?m rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q1048835 } GROUP BY ?q } . FILTER ( ?v = 1 ) }
Gabon Antigua and Barbuda The Bahamas Grenada
Gabon, Grenada and The Bahamas have a diplomatic relationship with exactly 1 administrative territory
Gabon Grenada The Bahamas
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?m ) AS ?v ) WHERE { ?q property:diplomatic_relation ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:political_territorial_entity } GROUP BY ?q } . FILTER ( ?v = 1 ) }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q1000 Q769 Q778
P530
Q1048835
USER
Which political territories have tactful political relations with those ones ?
(c(Q1048835),P530,Q1000) (c(Q1048835),P530,Q769) (c(Q1048835),P530,Q778)
action filter_type
action find
entity prev_answer
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', 'Q1000'] [{'concept': 'Q1048835'}, 'P530', 'Q769'] [{'concept': 'Q1048835'}, 'P530', 'Q778']
SELECT DISTINCT ?u WHERE { ?x property:P530 ?u . ?u rdf:type ontology:Q1048835 . VALUES ( ?x ) { ( resource:Q1000 ) ( resource:Q781 ) ( resource:Q778 ) } }
Gabon Grenada The Bahamas
action filter_type
action find
entity prev_answer
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Gabon'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Grenada'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'The Bahamas']
SELECT DISTINCT ?u WHERE { ?x property:diplomatic_relation ?u . ?u rdf:type ontology:political_territorial_entity . VALUES ( ?x ) { ( resource:Gabon ) ( resource:Antigua_and_Barbuda ) ( resource:The_Bahamas ) } }
[]
political territorial entity
Q183 Q408 Q408
SYSTEM
Australia for 2nd, 3rd, Germany for 1st
Q183 Q408 Q408
(c(Q1048835),P530,Q1000) (c(Q1048835),P530,Q769) (c(Q1048835),P530,Q778)
action filter_type
action find
entity prev_answer
relation P530
type Q1048835
[ANSWERS]
[{'concept': 'Q1048835'}, 'P530', 'Q1000'] [{'concept': 'Q1048835'}, 'P530', 'Q769'] [{'concept': 'Q1048835'}, 'P530', 'Q778']
SELECT DISTINCT ?u WHERE { ?x property:P530 ?u . ?u rdf:type ontology:Q1048835 . VALUES ( ?x ) { ( resource:Q1000 ) ( resource:Q781 ) ( resource:Q778 ) } }
Germany Australia Australia
Germany, Australia and Australia have tactful political relations with those ones
Germany Australia Australia
action filter_type
action find
entity prev_answer
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Gabon'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Grenada'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'The Bahamas']
SELECT DISTINCT ?u WHERE { ?x property:diplomatic_relation ?u . ?u rdf:type ontology:political_territorial_entity . VALUES ( ?x ) { ( resource:Gabon ) ( resource:Antigua_and_Barbuda ) ( resource:The_Bahamas ) } }
[]