Simple Question (Direct)
Simple Question
Q2292063
P106
Q28640
USER
What are the job of Pieter Huys ?
(Q2292063,P106,c(Q28640))
action filter_type
action find
entity Q2292063
relation P106
type Q28640
['Q2292063', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?b WHERE { resource:Q2292063 property:P106 ?b . ?b rdf:type ontology:Q28640 }
Pieter Huys
action filter_type
action find
entity Pieter Huys
relation occupation
type profession
['Pieter Huys', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?b WHERE { resource:Pieter_Huys property:occupation ?b . ?b rdf:type ontology:profession }
[]
profession
Q185351 Q40348
SYSTEM
jurist, lawyer
Q185351 Q40348
(Q2292063,P106,c(Q28640))
action filter_type
action find
entity Q2292063
relation P106
type Q28640
The job of Pieter Huys are a [ANSWERS]
['Q2292063', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?b WHERE { resource:Q2292063 property:P106 ?b . ?b rdf:type ontology:Q28640 }
jurist lawyer
The job of Pieter Huys are a jurist and lawyer
jurist lawyer
action filter_type
action find
entity Pieter Huys
relation occupation
type profession
['Pieter Huys', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?b WHERE { resource:Pieter_Huys property:occupation ?b . ?b rdf:type ontology:profession }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q185351 Q40348
P512
Q502895
USER
Who have the academic degree jurist and lawyer ?
(c(Q502895),P512,Q185351) (c(Q502895),P512,Q40348)
action union
action filter_type
action find_reverse
entity Q185351
relation P512
type Q502895
action filter_type
action find_reverse
entity Q40348
relation P512
type Q502895
[{'concept': 'Q502895'}, 'P512', 'Q185351'] [{'concept': 'Q502895'}, 'P512', 'Q40348']
SELECT DISTINCT ?j WHERE { ?j property:P512 ?w . VALUES ( ?w ) { ( resource:Q185351 ) ( resource:Q40348 ) } }
jurist lawyer
action union
action filter_type
action find_reverse
entity jurist
relation academic degree
type common name
action filter_type
action find_reverse
entity lawyer
relation academic degree
type common name
[{'concept': 'common name'}, 'academic degree', 'jurist'] [{'concept': 'common name'}, 'academic degree', 'lawyer']
SELECT DISTINCT ?j WHERE { ?j property:academic_degree ?w . VALUES ( ?w ) { ( resource:jurist ) ( resource:lawyer ) } }
[]
common name
Q182397 Q1338185 Q15944705
SYSTEM
Lars Løkke Rasmussen, Morten Messerschmidt, Anne Baastrup
Q15944705 Q182397 Q1338185 Q12306072 Q12331411 Q12331638 Q12332288 Q5937291 Q21856040 Q21855006
(c(Q502895),P512,Q185351) (c(Q502895),P512,Q40348)
action union
action filter_type
action find_reverse
entity Q185351
relation P512
type Q502895
action filter_type
action find_reverse
entity Q40348
relation P512
type Q502895
[ANSWERS] have the academic degree jurist and lawyer
[{'concept': 'Q502895'}, 'P512', 'Q185351'] [{'concept': 'Q502895'}, 'P512', 'Q40348']
SELECT DISTINCT ?j WHERE { ?j property:P512 ?w . VALUES ( ?w ) { ( resource:Q185351 ) ( resource:Q40348 ) } }
Anne Baastrup Lars Løkke Rasmussen Morten Messerschmidt Christian Ludvig Leopold von Schmettau Pernille Skipper Peter Loft Preben Bang Henriksen José Abelardo Núñez Oscar Gilberto Alegre Alejandro Abraham
Lars Løkke Rasmussen, Morten Messerschmidt and Anne Baastrup have the academic degree jurist and lawyer
Lars Løkke Rasmussen Morten Messerschmidt Anne Baastrup
action union
action filter_type
action find_reverse
entity jurist
relation academic degree
type common name
action filter_type
action find_reverse
entity lawyer
relation academic degree
type common name
[{'concept': 'common name'}, 'academic degree', 'jurist'] [{'concept': 'common name'}, 'academic degree', 'lawyer']
SELECT DISTINCT ?j WHERE { ?j property:academic_degree ?w . VALUES ( ?w ) { ( resource:jurist ) ( resource:lawyer ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q182397
P488
Q7210356
USER
Which political organization does that person lead ?
(c(Q7210356),P488,Q182397)
action filter_type
action find_reverse
entity Q182397
relation P488
type Q7210356
[{'concept': 'Q7210356'}, 'P488', 'Q182397']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q7210356 . ?v property:P488 resource:Q182397 }
Lars Løkke Rasmussen
action filter_type
action find_reverse
entity Lars Løkke Rasmussen
relation chairperson
type political organization
[{'concept': 'political organization'}, 'chairperson', 'Lars Løkke Rasmussen']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:political_organization . ?v property:chairperson resource:Lars_Løkke_Rasmussen }
[]
political organization
Clarification for simple ques.
Q182397
SYSTEM
Did you mean Lars Løkke Rasmussen ?
Q182397 Q1338185 Q15944705
(c(Q7210356),P488,Q182397) (c(Q7210356),P488,Q1338185) (c(Q7210356),P488,Q15944705)
[ANSWER]
[{'concept': 'Q7210356'}, 'P488', 'Q182397'] [{'concept': 'Q7210356'}, 'P488', 'Q1338185'] [{'concept': 'Q7210356'}, 'P488', 'Q15944705']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q7210356 . ?v property:P488 resource:Q182397 }
Lars Løkke Rasmussen Morten Messerschmidt Anne Baastrup
Did you mean Lars Løkke Rasmussen ?
Lars Løkke Rasmussen
[{'concept': 'political organization'}, 'chairperson', 'Lars Løkke Rasmussen'] [{'concept': 'political organization'}, 'chairperson', 'Morten Messerschmidt'] [{'concept': 'political organization'}, 'chairperson', 'Anne Baastrup']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:political_organization . ?v property:chairperson resource:Lars_Løkke_Rasmussen }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q7210356),P488,Q182397)
[{'concept': 'Q7210356'}, 'P488', 'Q182397']
[{'concept': 'political organization'}, 'chairperson', 'Lars Løkke Rasmussen']
[]
Q217321
SYSTEM
Venstre
Q217321
(c(Q7210356),P488,Q182397)
action filter_type
action find_reverse
entity Q182397
relation P488
type Q7210356
That person leads to [ANSWER]
[{'concept': 'Q7210356'}, 'P488', 'Q182397']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q7210356 . ?v property:P488 resource:Q182397 }
Venstre
That person leads to Venstre
Venstre
action filter_type
action find_reverse
entity Lars Løkke Rasmussen
relation chairperson
type political organization
[{'concept': 'political organization'}, 'chairperson', 'Lars Løkke Rasmussen']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:political_organization . ?v property:chairperson resource:Lars_Løkke_Rasmussen }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q182397
P39
Q12737077 Q4164871
USER
How many occupations or positions were the positions occupied by Lars Løkke Rasmussen ?
(Q182397,P39,c(Q12737077)) (Q182397,P39,c(Q4164871))
action count
action union
action filter_type
action find
entity Q182397
relation P39
type Q12737077
action filter_type
action find
entity Q182397
relation P39
type Q4164871
['Q182397', 'P39', {'concept': 'Q12737077'}] ['Q182397', 'P39', {'concept': 'Q4164871'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?l ) WHERE { VALUES ( ?t ) { ( ontology:Q12737077 ) ( ontology:Q4164871 ) } . ?d rdf:type ?t }
Lars Løkke Rasmussen
action count
action union
action filter_type
action find
entity Lars Løkke Rasmussen
relation position held
type occupation
action filter_type
action find
entity Lars Løkke Rasmussen
relation position held
type position
['Lars Løkke Rasmussen', 'position held', {'concept': 'occupation'}] ['Lars Løkke Rasmussen', 'position held', {'concept': 'position'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?l ) WHERE { VALUES ( ?t ) { ( ontology:occupation ) ( ontology:position ) } . ?d rdf:type ?t }
[]
occupation position
SYSTEM
7
Q5449541 Q12311817 Q18913281 Q18913275 Q18913290 Q795477 Q18913269
(Q182397,P39,c(Q12737077)) (Q182397,P39,c(Q4164871))
action count
action union
action filter_type
action find
entity Q182397
relation P39
type Q12737077
action filter_type
action find
entity Q182397
relation P39
type Q4164871
[ANSWER]
['Q182397', 'P39', {'concept': 'Q12737077'}] ['Q182397', 'P39', {'concept': 'Q4164871'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?l ) WHERE { VALUES ( ?t ) { ( ontology:Q12737077 ) ( ontology:Q4164871 ) } . ?d rdf:type ?t }
Finance Minister of Denmark member of the Folketing leader of Venstres Ungdoms Minister of Health Speaker of the Folketing Prime Minister of Denmark Minister of the Interior
7
action count
action union
action filter_type
action find
entity Lars Løkke Rasmussen
relation position held
type occupation
action filter_type
action find
entity Lars Løkke Rasmussen
relation position held
type position
['Lars Løkke Rasmussen', 'position held', {'concept': 'occupation'}] ['Lars Løkke Rasmussen', 'position held', {'concept': 'position'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?l ) WHERE { VALUES ( ?t ) { ( ontology:occupation ) ( ontology:position ) } . ?d rdf:type ?t }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16145861
P39
Q12737077
USER
What was the position held by Lisandro Mauricio Arias ?
(Q16145861,P39,c(Q12737077))
action filter_type
action find
entity Q16145861
relation P39
type Q12737077
['Q16145861', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q16145861 property:P39 ?z . ?z rdf:type ontology:Q12737077 }
Lisandro Mauricio Arias
action filter_type
action find
entity Lisandro Mauricio Arias
relation position held
type occupation
['Lisandro Mauricio Arias', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:Lisandro_Mauricio_Arias property:position_held ?z . ?z rdf:type ontology:occupation }
[]
occupation
Q19300340
SYSTEM
deputy of the National Congress of Honduras
Q19300340
(Q16145861,P39,c(Q12737077))
action filter_type
action find
entity Q16145861
relation P39
type Q12737077
The position held by Lisandro Mauricio Arias was a [ANSWER]
['Q16145861', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q16145861 property:P39 ?z . ?z rdf:type ontology:Q12737077 }
deputy of the National Congress of Honduras
The position held by Lisandro Mauricio Arias was a deputy of the National Congress of Honduras
deputy of the National Congress of Honduras
action filter_type
action find
entity Lisandro Mauricio Arias
relation position held
type occupation
['Lisandro Mauricio Arias', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:Lisandro_Mauricio_Arias property:position_held ?z . ?z rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16145861
P27
Q15617994
USER
Which administrative territory is Lisandro Mauricio Arias an inhabitant of ?
(Q16145861,P27,c(Q15617994))
action filter_type
action find
entity Q16145861
relation P27
type Q15617994
['Q16145861', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { resource:Q16145861 property:P27 ?t . ?t rdf:type ontology:Q15617994 }
Lisandro Mauricio Arias
action filter_type
action find
entity Lisandro Mauricio Arias
relation country of citizenship
type designation for an administrative territorial entity
['Lisandro Mauricio Arias', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Lisandro_Mauricio_Arias property:country_of_citizenship ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q783
SYSTEM
Honduras
Q783
(Q16145861,P27,c(Q15617994))
action filter_type
action find
entity Q16145861
relation P27
type Q15617994
[ANSWER] is Lisandro Mauricio Arias an inhabitant of
['Q16145861', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { resource:Q16145861 property:P27 ?t . ?t rdf:type ontology:Q15617994 }
Honduras
Honduras is Lisandro Mauricio Arias an inhabitant of
Honduras
action filter_type
action find
entity Lisandro Mauricio Arias
relation country of citizenship
type designation for an administrative territorial entity
['Lisandro Mauricio Arias', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Lisandro_Mauricio_Arias property:country_of_citizenship ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q218
P530
Q15617994 Q15617994
USER
Which administrative territories holds diplomatic relationship with less number of administrative territories than Romania ?
(c(Q15617994),P530,c(Q15617994))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find_reverse
entity Q218
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?o ) AS ?f ) WHERE { ?r property:P530 ?o . ?r rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q15617994 } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?k ) WHERE { ?b property:P530 resource:Q218 . ?b rdf:type ontology:Q15617994 } } . FILTER ( ?f < ?k ) }
Romania
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find_reverse
entity Romania
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?o ) AS ?f ) WHERE { ?r property:diplomatic_relation ?o . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?k ) WHERE { ?b property:diplomatic_relation resource:Romania . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?f < ?k ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q929 Q29999 Q232
SYSTEM
Central African Republic, Kingdom of the Netherlands, Kazakhstan
Q702 Q804 Q265 Q712 Q837 Q242 Q811 Q929 Q29999 Q854 Q730 Q232 Q1027 Q1032 Q697 Q695 Q754 Q912 Q683 Q836 Q817 Q1019 Q945 Q678 Q33788
(c(Q15617994),P530,c(Q15617994))
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find_reverse
entity Q218
relation P530
type Q15617994
[ANSWERS] hold diplomatic relationship with less number of administrative territories than Romania
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?o ) AS ?f ) WHERE { ?r property:P530 ?o . ?r rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q15617994 } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?k ) WHERE { ?b property:P530 resource:Q218 . ?b rdf:type ontology:Q15617994 } } . FILTER ( ?f < ?k ) }
Federated States of Micronesia Panama Uzbekistan Fiji Nepal Belize Nicaragua Central African Republic Kingdom of the Netherlands Sri Lanka Suriname Kazakhstan Mauritius Niger Nauru Palau Trinidad and Tobago Mali Samoa Myanmar Kuwait Madagascar Togo Tonga New Caledonia
Central African Republic, Kingdom of the Netherlands and Kazakhstan hold diplomatic relationship with less number of administrative territories than Romania
Central African Republic Kingdom of the Netherlands Kazakhstan
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find_reverse
entity Romania
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?o ) AS ?f ) WHERE { ?r property:diplomatic_relation ?o . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?k ) WHERE { ?b property:diplomatic_relation resource:Romania . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?f < ?k ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q783 Q23334
P17
Q355304
USER
How many watercourses are present in Honduras or Abkhazia ?
(c(Q355304),P17,Q783) (c(Q355304),P17,Q23334)
action count
action union
action filter_type
action find_reverse
entity Q783
relation P17
type Q355304
action filter_type
action find_reverse
entity Q23334
relation P17
type Q355304
[{'concept': 'Q355304'}, 'P17', 'Q783'] [{'concept': 'Q355304'}, 'P17', 'Q23334']
SELECT DISTINCT ( COUNT ( ?t ) AS ?n ) WHERE { { ?t property:P17 resource:Q783 . ?t rdf:type ontology:Q355304 } UNION { ?t property:P17 resource:Q23334 . ?t rdf:type ontology:Q355304 } }
Honduras Abkhazia
action count
action union
action filter_type
action find_reverse
entity Honduras
relation country
type watercourse
action filter_type
action find_reverse
entity Abkhazia
relation country
type watercourse
[{'concept': 'watercourse'}, 'country', 'Honduras'] [{'concept': 'watercourse'}, 'country', 'Abkhazia']
SELECT DISTINCT ( COUNT ( ?t ) AS ?n ) WHERE { { ?t property:country resource:Honduras . ?t rdf:type ontology:watercourse } UNION { ?t property:country resource:Abkhazia . ?t rdf:type ontology:watercourse } }
[]
watercourse
SYSTEM
46
Q2474516 Q7154811 Q16919129 Q2840071 Q6126455 Q16918504 Q7109013 Q2385680 Q6538207 Q7513107 Q5190271 Q7808524 Q5614380 Q21433496 Q6960730 Q3492681 Q7132465 Q2114596 Q7697244 Q1468689 Q14920275 Q1972264 Q501454 Q7635944 Q7679446 Q6887856 Q6192084 Q7971082 Q5614370 Q7386198 Q2631101 Q16918344 Q5069734 Q1162389 Q16918687 Q6887460 Q7966960 Q2193528 Q5192611 Q6898588 Q6957073 Q7205915 Q8046752 Q7386413 Q5638099 Q2419404
(c(Q355304),P17,Q783) (c(Q355304),P17,Q23334)
action count
action union
action filter_type
action find_reverse
entity Q783
relation P17
type Q355304
action filter_type
action find_reverse
entity Q23334
relation P17
type Q355304
[ANSWER]
[{'concept': 'Q355304'}, 'P17', 'Q783'] [{'concept': 'Q355304'}, 'P17', 'Q23334']
SELECT DISTINCT ( COUNT ( ?t ) AS ?n ) WHERE { { ?t property:P17 resource:Q783 . ?t rdf:type ontology:Q355304 } UNION { ?t property:P17 resource:Q23334 . ?t rdf:type ontology:Q355304 } }
Gumista River Paulaya River Guarajambala River Cangrejal River Jalan River Humuya River Otoro River Chkhalta Leán River Sigre River Cruta River Tinto River Guayape River Danto River Nakunta River Patuca River Papaloteca River Goascorán River Telica River Coco River Mokvi Bzyb River Psou River Sulaco River Talgua River Mocorón River Jicatuyo River Warunta River Guayambre River Río Blanco Aguán River Sico River Chamelecón River Guárico River Higuito River Mocal River Wampú River Choluteca River Cuero River Monda River Nacaome River Plátano River Yaguala River Río Sico Tinto Negro Tela River Ulúa River
46
action count
action union
action filter_type
action find_reverse
entity Honduras
relation country
type watercourse
action filter_type
action find_reverse
entity Abkhazia
relation country
type watercourse
[{'concept': 'watercourse'}, 'country', 'Honduras'] [{'concept': 'watercourse'}, 'country', 'Abkhazia']
SELECT DISTINCT ( COUNT ( ?t ) AS ?n ) WHERE { { ?t property:country resource:Honduras . ?t rdf:type ontology:watercourse } UNION { ?t property:country resource:Abkhazia . ?t rdf:type ontology:watercourse } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P17
Q15617994 Q699405 Q337567
USER
Which administrative territories are min number of dwellings and still waterss situated in ?
(c(Q699405)|c(Q337567),P17,c(Q15617994))
action argmin
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q699405
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q337567
[[{'concept': 'Q699405'}, {'concept': 'Q337567'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MIN ( ?e ) AS ?z ) { SELECT DISTINCT ?y ( COUNT ( ?t ) AS ?e ) WHERE { ?t rdf:type ?p . VALUES ( ?p ) { ( ontology:Q699405 ) ( ontology:Q337567 ) } } GROUP BY ?y } } . { SELECT DISTINCT ?a ( COUNT ( ?m ) AS ?b ) WHERE { { ?m property:P17 ?a . ?a rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q699405 } UNION { ?m property:P17 ?a . ?a rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q337567 } } GROUP BY ?a } . FILTER ( ?b = ?z ) }
action argmin
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type dwelling
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type still waters
[[{'concept': 'dwelling'}, {'concept': 'still waters'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MIN ( ?e ) AS ?z ) { SELECT DISTINCT ?y ( COUNT ( ?t ) AS ?e ) WHERE { ?t rdf:type ?p . VALUES ( ?p ) { ( ontology:dwelling ) ( ontology:still_waters ) } } GROUP BY ?y } } . { SELECT DISTINCT ?a ( COUNT ( ?m ) AS ?b ) WHERE { { ?m property:country ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:dwelling } UNION { ?m property:country ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:still_waters } } GROUP BY ?a } . FILTER ( ?b = ?z ) }
[]
designation for an administrative territorial entity dwelling still waters
Q1011 Q805 Q929
SYSTEM
Cape Verde, Yemen, Central African Republic
Q702 Q1256 Q709 Q398 Q805 Q339952 Q270508 Q684030 Q2172530 Q12536 Q783 Q640426 Q36678 Q736029 Q565812 Q187035 Q1462 Q517333 Q2001966 Q326029 Q153529 Q695316 Q826 Q165040 Q315667 Q153136 Q1210 Q921 Q155019 Q29999 Q107426 Q730 Q1282 Q159626 Q238 Q1042 Q177323 Q313175 Q149621 Q34762 Q1458 Q3462133 Q815731 Q47261 Q704288 Q10957559 Q1032 Q117 Q389004 Q160307 Q164092 Q1483510 Q2662372 Q1007 Q829700 Q970 Q239502 Q683 Q15581 Q34020 Q2380910 Q193152 Q760 Q655621 Q2502354 Q154849 Q159856 Q2621010 Q696651 Q148499 Q1011 Q8575586 Q529605 Q1039 Q33788 Q929 Q11024667 Q426025
(c(Q699405)|c(Q337567),P17,c(Q15617994))
action argmin
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q699405
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q337567
Min number of dwellings and still waterss are situated in [ANSWERS]
[[{'concept': 'Q699405'}, {'concept': 'Q337567'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MIN ( ?e ) AS ?z ) { SELECT DISTINCT ?y ( COUNT ( ?t ) AS ?e ) WHERE { ?t rdf:type ?p . VALUES ( ?p ) { ( ontology:Q699405 ) ( ontology:Q337567 ) } } GROUP BY ?y } } . { SELECT DISTINCT ?a ( COUNT ( ?m ) AS ?b ) WHERE { { ?m property:P17 ?a . ?a rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q699405 } UNION { ?m property:P17 ?a . ?a rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q337567 } } GROUP BY ?a } . FILTER ( ?b = ?z ) }
Federated States of Micronesia Liguria Marshall Islands Bahrain Yemen Principality of Orange-Nassau Andora Principality of Serbia Electorate of Württemberg Abbasid caliphate Honduras Stahnsdorf West Bank Nassau-Siegen Principality of Calenberg Principality of Albania Sardinia Principality of Polotsk Company rule in India Duchy of Brunswick Duchy of Milan Schwarzburg-Rudolstadt Maldives Duchy of Parma Saxe-Weimar Habsburg Empire Lombardy Brunei Duchy of Lorraine Kingdom of the Netherlands Anjou Suriname Lazio Württemberg San Marino Seychelles developing country Saxe-Lauenburg district Principality of Bayreuth Calabria Saxe-Coburg and Gotha Principality of Bulgaria Duchy of Bavaria Duchy of Holstein Moldavia Niger Ghana Wallachia Fatimid caliphate Duchy of Saxony Principality of Wales Principality of Minsk Guinea-Bissau Saxe-Jena Comoros Kingdom of Galicia–Volhynia Samoa Principality of Catalonia Niue Duchy of Zaslawye Great Moravia Saint Lucia 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 Sao Tomé and Príncipe New Caledonia Central African Republic Duchy of Mecklenburg-Schwerin Duchy of Savoy
Min number of dwellings and still waterss are situated in Cape Verde, Yemen and Central African Republic
Cape Verde Yemen Central African Republic
action argmin
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type dwelling
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type still waters
[[{'concept': 'dwelling'}, {'concept': 'still waters'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( MIN ( ?e ) AS ?z ) { SELECT DISTINCT ?y ( COUNT ( ?t ) AS ?e ) WHERE { ?t rdf:type ?p . VALUES ( ?p ) { ( ontology:dwelling ) ( ontology:still_waters ) } } GROUP BY ?y } } . { SELECT DISTINCT ?a ( COUNT ( ?m ) AS ?b ) WHERE { { ?m property:country ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:dwelling } UNION { ?m property:country ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:still_waters } } GROUP BY ?a } . FILTER ( ?b = ?z ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q182397
P6
Q1048835 Q640506
USER
How many political territories and cabinets have their government headed by Lars Løkke Rasmussen ?
(c(Q1048835),P6,Q182397) (c(Q640506),P6,Q182397)
action count
action union
action filter_type
action find_reverse
entity Q182397
relation P6
type Q1048835
action filter_type
action find_reverse
entity Q182397
relation P6
type Q640506
[{'concept': 'Q1048835'}, 'P6', 'Q182397'] [{'concept': 'Q640506'}, 'P6', 'Q182397']
SELECT DISTINCT ( COUNT ( ?x ) AS ?z ) WHERE { { ?x property:P6 resource:Q182397 . ?x rdf:type ontology:Q1048835 } UNION { ?x property:P6 resource:Q182397 . ?x rdf:type ontology:Q640506 } }
Lars Løkke Rasmussen
action count
action union
action filter_type
action find_reverse
entity Lars Løkke Rasmussen
relation head of government
type political territorial entity
action filter_type
action find_reverse
entity Lars Løkke Rasmussen
relation head of government
type cabinet
[{'concept': 'political territorial entity'}, 'head of government', 'Lars Løkke Rasmussen'] [{'concept': 'cabinet'}, 'head of government', 'Lars Løkke Rasmussen']
SELECT DISTINCT ( COUNT ( ?x ) AS ?z ) WHERE { { ?x property:head_of_government resource:Lars_Løkke_Rasmussen . ?x rdf:type ontology:political_territorial_entity } UNION { ?x property:head_of_government resource:Lars_Løkke_Rasmussen . ?x rdf:type ontology:cabinet } }
[]
political territorial entity cabinet
SYSTEM
1 political territories and 1 cabinets
Q20451905 Q35
(c(Q1048835),P6,Q182397) (c(Q640506),P6,Q182397)
action count
action union
action filter_type
action find_reverse
entity Q182397
relation P6
type Q1048835
action filter_type
action find_reverse
entity Q182397
relation P6
type Q640506
[ANSWER]
[{'concept': 'Q1048835'}, 'P6', 'Q182397'] [{'concept': 'Q640506'}, 'P6', 'Q182397']
SELECT DISTINCT ( COUNT ( ?x ) AS ?z ) WHERE { { ?x property:P6 resource:Q182397 . ?x rdf:type ontology:Q1048835 } UNION { ?x property:P6 resource:Q182397 . ?x rdf:type ontology:Q640506 } }
Cabinet of Lars Løkke Rasmussen II Denmark
1 political territories and 1 cabinets
action count
action union
action filter_type
action find_reverse
entity Lars Løkke Rasmussen
relation head of government
type political territorial entity
action filter_type
action find_reverse
entity Lars Løkke Rasmussen
relation head of government
type cabinet
[{'concept': 'political territorial entity'}, 'head of government', 'Lars Løkke Rasmussen'] [{'concept': 'cabinet'}, 'head of government', 'Lars Løkke Rasmussen']
SELECT DISTINCT ( COUNT ( ?x ) AS ?z ) WHERE { { ?x property:head_of_government resource:Lars_Løkke_Rasmussen . ?x rdf:type ontology:political_territorial_entity } UNION { ?x property:head_of_government resource:Lars_Løkke_Rasmussen . ?x rdf:type ontology:cabinet } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q2211284 Q783
P530 P27
Q15617994
USER
Which administrative territories have diplomatic relations with Honduras or are Sadrak Teguimaha an inhabitant of ?
OR((Q783,P530,c(Q15617994)), (Q2211284,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q783
relation P530
action find
entity Q2211284
relation P27
type Q15617994
{'OR': [['Q783', 'P530', {'concept': 'Q15617994'}], ['Q2211284', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q783 property:P530 ?a } UNION { resource:Q2211284 property:P27 ?a } } . ?a rdf:type ontology:Q15617994 }
Sadrak Teguimaha Honduras
action filter_type
action union
action find
entity Honduras
relation diplomatic relation
action find
entity Sadrak Teguimaha
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Honduras', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Sadrak Teguimaha', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Honduras property:diplomatic_relation ?a } UNION { resource:Sadrak_Teguimaha property:country_of_citizenship ?a } } . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q155 Q1009
SYSTEM
Brazil, Cameroon
Q155 Q1009
OR((Q783,P530,c(Q15617994)), (Q2211284,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q783
relation P530
action find
entity Q2211284
relation P27
type Q15617994
[ANSWERS] have diplomatic relations with Honduras or are Sadrak Teguimaha an inhabitant of
{'OR': [['Q783', 'P530', {'concept': 'Q15617994'}], ['Q2211284', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Q783 property:P530 ?a } UNION { resource:Q2211284 property:P27 ?a } } . ?a rdf:type ontology:Q15617994 }
Brazil Cameroon
Brazil and Cameroon have diplomatic relations with Honduras or are Sadrak Teguimaha an inhabitant of
Brazil Cameroon
action filter_type
action union
action find
entity Honduras
relation diplomatic relation
action find
entity Sadrak Teguimaha
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Honduras', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Sadrak Teguimaha', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { { resource:Honduras property:diplomatic_relation ?a } UNION { resource:Sadrak_Teguimaha property:country_of_citizenship ?a } } . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1011
P1532
Q6979593
USER
Which national association football team plays for Cape Verde ?
(c(Q6979593),P1532,Q1011)
action filter_type
action find_reverse
entity Q1011
relation P1532
type Q6979593
[{'concept': 'Q6979593'}, 'P1532', 'Q1011']
SELECT DISTINCT ?i WHERE { ?i property:P1532 resource:Q1011 . ?i rdf:type ontology:Q6979593 }
Cape Verde
action filter_type
action find_reverse
entity Cape Verde
relation country for sport
type national association football team
[{'concept': 'national association football team'}, 'country for sport', 'Cape Verde']
SELECT DISTINCT ?i WHERE { ?i property:country_for_sport resource:Cape_Verde . ?i rdf:type ontology:national_association_football_team }
[]
national association football team
Q5035121
SYSTEM
Cape Verde women's national football team
Q5035121
(c(Q6979593),P1532,Q1011)
action filter_type
action find_reverse
entity Q1011
relation P1532
type Q6979593
And [ANSWER] plays for Cape Verde
[{'concept': 'Q6979593'}, 'P1532', 'Q1011']
SELECT DISTINCT ?i WHERE { ?i property:P1532 resource:Q1011 . ?i rdf:type ontology:Q6979593 }
Cape Verde women's national football team
And Cape Verde women's national football team plays for Cape Verde
Cape Verde women's national football team
action filter_type
action find_reverse
entity Cape Verde
relation country for sport
type national association football team
[{'concept': 'national association football team'}, 'country for sport', 'Cape Verde']
SELECT DISTINCT ?i WHERE { ?i property:country_for_sport resource:Cape_Verde . ?i rdf:type ontology:national_association_football_team }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5035121
P641
Q349
USER
Which sport was that national association football team a part of ?
(Q5035121,P641,c(Q349))
action filter_type
action find
entity Q5035121
relation P641
type Q349
['Q5035121', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?p WHERE { resource:Q5035121 property:P641 ?p . ?p rdf:type ontology:Q349 }
Cape Verde women's national football team
action filter_type
action find
entity Cape Verde women's national football team
relation sport
type sport
["Cape Verde women's national football team", 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?p WHERE { resource:Cape_Verde_women's_national_football_team property:sport ?p . ?p rdf:type ontology:sport }
[]
sport
Q606060
SYSTEM
women's association football
Q606060
(Q5035121,P641,c(Q349))
action filter_type
action find
entity Q5035121
relation P641
type Q349
[ANSWER] was that national association football team a part of
['Q5035121', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?p WHERE { resource:Q5035121 property:P641 ?p . ?p rdf:type ontology:Q349 }
women's association football
Women's association football was that national association football team a part of
women's association football
action filter_type
action find
entity Cape Verde women's national football team
relation sport
type sport
["Cape Verde women's national football team", 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?p WHERE { resource:Cape_Verde_women's_national_football_team property:sport ?p . ?p rdf:type ontology:sport }
[]