Simple Question (Direct)
Simple Question
Q513421
P36
Q15700808
USER
Which urban unit definition is called the capital of Härjedalen Municipality ?
(Q513421,P36,c(Q15700808))
action filter_type
action find
entity Q513421
relation P36
type Q15700808
['Q513421', 'P36', {'concept': 'Q15700808'}]
SELECT DISTINCT ?s WHERE { resource:Q513421 property:P36 ?s . ?s rdf:type ontology:Q15700808 }
Härjedalen Municipality
action filter_type
action find
entity Härjedalen Municipality
relation capital
type urban unit definition
['Härjedalen Municipality', 'capital', {'concept': 'urban unit definition'}]
SELECT DISTINCT ?s WHERE { resource:Härjedalen_Municipality property:capital ?s . ?s rdf:type ontology:urban_unit_definition }
[]
urban unit definition
Q977073
SYSTEM
Sveg
Q977073
(Q513421,P36,c(Q15700808))
action filter_type
action find
entity Q513421
relation P36
type Q15700808
[ANSWER] is called the capital of Härjedalen Municipality
['Q513421', 'P36', {'concept': 'Q15700808'}]
SELECT DISTINCT ?s WHERE { resource:Q513421 property:P36 ?s . ?s rdf:type ontology:Q15700808 }
Sveg
Sveg is called the capital of Härjedalen Municipality
Sveg
action filter_type
action find
entity Härjedalen Municipality
relation capital
type urban unit definition
['Härjedalen Municipality', 'capital', {'concept': 'urban unit definition'}]
SELECT DISTINCT ?s WHERE { resource:Härjedalen_Municipality property:capital ?s . ?s rdf:type ontology:urban_unit_definition }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q513421
P551
Q502895
USER
Which person has residence at that administrative territory of Sweden ?
(c(Q502895),P551,Q977073)
action filter_type
action find_reverse
entity Q513421
relation P551
type Q502895
[{'concept': 'Q502895'}, 'P551', 'Q977073']
SELECT DISTINCT ?k WHERE { ?k property:P551 resource:Q513421 . ?k rdf:type ontology:Q502895 }
Härjedalen Municipality
action filter_type
action find_reverse
entity Härjedalen Municipality
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Sveg']
SELECT DISTINCT ?k WHERE { ?k property:residence resource:Härjedalen_Municipality . ?k rdf:type ontology:common_name }
[]
common name
Q21571733
SYSTEM
Michael Link
Q21571733
(c(Q502895),P551,Q977073)
action filter_type
action find_reverse
entity Q513421
relation P551
type Q502895
[ANSWER] has residence at that administrative territory of Sweden
[{'concept': 'Q502895'}, 'P551', 'Q977073']
SELECT DISTINCT ?k WHERE { ?k property:P551 resource:Q513421 . ?k rdf:type ontology:Q502895 }
Michael Link
Michael Link has residence at that administrative territory of Sweden
Michael Link
action filter_type
action find_reverse
entity Härjedalen Municipality
relation residence
type common name
[{'concept': 'common name'}, 'residence', 'Sveg']
SELECT DISTINCT ?k WHERE { ?k property:residence resource:Härjedalen_Municipality . ?k rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q21571733
P734
Q82799
USER
Who has the surname that person ?
(Q21571733,P734,c(Q82799))
action filter_type
action find
entity Q21571733
relation P734
type Q82799
['Q21571733', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?w WHERE { resource:Q21571733 property:P734 ?w . ?w rdf:type ontology:Q82799 }
Michael Link
action filter_type
action find
entity Michael Link
relation family name
type name
['Michael Link', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?w WHERE { resource:Michael_Link property:family_name ?w . ?w rdf:type ontology:name }
[]
name
Q16872194
SYSTEM
Link
Q16872194
(Q21571733,P734,c(Q82799))
action filter_type
action find
entity Q21571733
relation P734
type Q82799
[ANSWER] has the surname that person
['Q21571733', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?w WHERE { resource:Q21571733 property:P734 ?w . ?w rdf:type ontology:Q82799 }
Link
Link has the surname that person
Link
action filter_type
action find
entity Michael Link
relation family name
type name
['Michael Link', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?w WHERE { resource:Michael_Link property:family_name ?w . ?w rdf:type ontology:name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P407
Q34770 Q82799
USER
How many languages are approximately 19 names composed in ?
(c(Q82799),P407,c(Q34770))
action count
action approx
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
value 19
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?q ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?v ) AS ?n ) WHERE { ?u rdf:type ontology:Q34770 . ?v rdf:type ontology:Q82799 . ?v property:P407 ?u } GROUP BY ?u } . FILTER ( ?n = 19 ) }
action count
action approx
action find_reverse_tuple_counts
relation language of work or name
type language
type name
value 19
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?q ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?v ) AS ?n ) WHERE { ?u rdf:type ontology:language . ?v rdf:type ontology:name . ?v property:language_of_work_or_name ?u } GROUP BY ?u } . FILTER ( ?n = 19 ) }
[]
language name
SYSTEM
28
Q132659 Q18130932 Q13414913 Q21161942 Q35499 Q37015 Q8785 Q35726 Q34909 Q27403 Q1420587 Q36206 Q1321 Q33976 Q33879 Q10498031 Q397 Q9056 Q8752 Q37041 Q652 Q35505 Q25167 Q25164 Q56982 Q35308 Q36790 Q447117
(c(Q82799),P407,c(Q34770))
action count
action approx
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
value 19
[ANSWER]
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?q ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?v ) AS ?n ) WHERE { ?u rdf:type ontology:Q34770 . ?v rdf:type ontology:Q82799 . ?v property:P407 ?u } GROUP BY ?u } . FILTER ( ?n = 19 ) }
Egyptian hieroglyphs Traditional Chinese Simplified Chinese Serbian written in Cyrillic Old Church Slavonic Riksmål Armenian Etruscan Old Icelandic Galatian Høgnorsk Lak Spanish Sardinian language Pangasinan language Old East Norse Latin Czech Basque classical Chinese Italian Old Norse language Bokmål Nynorsk Judaeo-Portuguese Old Irish Sumerian Old Egyptian
28
action count
action approx
action find_reverse_tuple_counts
relation language of work or name
type language
type name
value 19
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?q ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?v ) AS ?n ) WHERE { ?u rdf:type ontology:language . ?v rdf:type ontology:name . ?v property:language_of_work_or_name ?u } GROUP BY ?u } . FILTER ( ?n = 19 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3646189
P17
Q1048835
USER
Which political territory is French Pass situated in ?
(Q3646189,P17,c(Q1048835))
action filter_type
action find
entity Q3646189
relation P17
type Q1048835
['Q3646189', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { resource:Q3646189 property:P17 ?g . ?g rdf:type ontology:Q1048835 }
French Pass
action filter_type
action find
entity French Pass
relation country
type political territorial entity
['French Pass', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:French_Pass property:country ?g . ?g rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q664
SYSTEM
New Zealand
Q664
(Q3646189,P17,c(Q1048835))
action filter_type
action find
entity Q3646189
relation P17
type Q1048835
Which political territory is French Pass situated in
['Q3646189', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { resource:Q3646189 property:P17 ?g . ?g rdf:type ontology:Q1048835 }
New Zealand
Which political territory is French Pass situated in
New Zealand
action filter_type
action find
entity French Pass
relation country
type political territorial entity
['French Pass', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:French_Pass property:country ?g . ?g rdf:type ontology:political_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q21919824
Q1048835
USER
And how about Boggy Creek?
(Q21919824,P17,c(Q1048835))
action filter_type
action find
entity Q21919824
relation P17
type Q1048835
['Q21919824', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q1048835 . resource:Q21919824 property:P17 ?u }
Boggy Creek
action filter_type
action find
entity Boggy Creek
relation country
type political territorial entity
['Boggy Creek', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:political_territorial_entity . resource:Boggy_Creek property:country ?u }
[]
political territorial entity
Q408
SYSTEM
Australia
Q408
(Q21919824,P17,c(Q1048835))
action filter_type
action find
entity Q21919824
relation P17
type Q1048835
[ANSWER]
['Q21919824', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q1048835 . resource:Q21919824 property:P17 ?u }
Australia
Australia
action filter_type
action find
entity Boggy Creek
relation country
type political territorial entity
['Boggy Creek', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:political_territorial_entity . resource:Boggy_Creek property:country ?u }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q6557867 Q21571733
P27
Q1048835
USER
Which political territories are Michael Link or Lisa Chaffey a civilian of ?
OR((Q21571733,P27,c(Q1048835)), (Q6557867,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q21571733
relation P27
action find
entity Q6557867
relation P27
type Q1048835
{'OR': [['Q21571733', 'P27', {'concept': 'Q1048835'}], ['Q6557867', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q21571733 property:P27 ?v } UNION { resource:Q6557867 property:P27 ?v } } . ?v rdf:type ontology:Q1048835 }
Lisa Chaffey Michael Link
action filter_type
action union
action find
entity Michael Link
relation country of citizenship
action find
entity Lisa Chaffey
relation country of citizenship
type political territorial entity
{'OR': [['Michael Link', 'country of citizenship', {'concept': 'political territorial entity'}], ['Lisa Chaffey', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Michael_Link property:country_of_citizenship ?v } UNION { resource:Lisa_Chaffey property:country_of_citizenship ?v } } . ?v rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q408 Q183
SYSTEM
Australia, Germany
Q408 Q183
OR((Q21571733,P27,c(Q1048835)), (Q6557867,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q21571733
relation P27
action find
entity Q6557867
relation P27
type Q1048835
[ANSWERS] are Michael Link or Lisa Chaffey a civilian of
{'OR': [['Q21571733', 'P27', {'concept': 'Q1048835'}], ['Q6557867', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q21571733 property:P27 ?v } UNION { resource:Q6557867 property:P27 ?v } } . ?v rdf:type ontology:Q1048835 }
Australia Germany
Australia and Germany are Michael Link or Lisa Chaffey a civilian of
Australia Germany
action filter_type
action union
action find
entity Michael Link
relation country of citizenship
action find
entity Lisa Chaffey
relation country of citizenship
type political territorial entity
{'OR': [['Michael Link', 'country of citizenship', {'concept': 'political territorial entity'}], ['Lisa Chaffey', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Michael_Link property:country_of_citizenship ?v } UNION { resource:Lisa_Chaffey property:country_of_citizenship ?v } } . ?v rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q29
P530
Q15617994
USER
Do Spain have diplomatic relations with those political territories ?
(Q29,P530,Q408) (Q29,P530,Q183)
action is_in
entity prev_answer
action find
entity Q29
relation P530
['Q29', 'P530', 'Q408'] ['Q29', 'P530', 'Q183']
ASK WHERE { resource:Q29 property:P530 ?v . VALUES ( ?v ) { ( resource:Q408 ) ( resource:Q183 ) } }
Spain
action is_in
entity prev_answer
action find
entity Spain
relation diplomatic relation
['Spain', 'diplomatic relation', 'Australia'] ['Spain', 'diplomatic relation', 'Germany']
ASK WHERE { resource:Spain property:diplomatic_relation ?v . VALUES ( ?v ) { ( resource:Australia ) ( resource:Germany ) } }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q29,P530,Q408) (Q29,P530,Q183)
action is_in
entity prev_answer
action find
entity Q29
relation P530
[ANSWER]
['Q29', 'P530', 'Q408'] ['Q29', 'P530', 'Q183']
ASK WHERE { resource:Q29 property:P530 ?v . VALUES ( ?v ) { ( resource:Q408 ) ( resource:Q183 ) } }
Yes
action is_in
entity prev_answer
action find
entity Spain
relation diplomatic relation
['Spain', 'diplomatic relation', 'Australia'] ['Spain', 'diplomatic relation', 'Germany']
ASK WHERE { resource:Spain property:diplomatic_relation ?v . VALUES ( ?v ) { ( resource:Australia ) ( resource:Germany ) } }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q183 Q641879
P530
Q15617994
USER
Does Thiessow hold diplomatic relationship with Germany ?
(Q183,P530,Q641879)
action is_in
entity Q641879
action find
entity Q183
relation P530
['Q183', 'P530', 'Q641879']
ASK WHERE { resource:Q183 property:P530 resource:Q641879 }
Germany Thiessow
action is_in
entity Thiessow
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Thiessow']
ASK WHERE { resource:Germany property:diplomatic_relation resource:Thiessow }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q183,P530,Q641879)
action is_in
entity Q641879
action find
entity Q183
relation P530
[ANSWER]
['Q183', 'P530', 'Q641879']
ASK WHERE { resource:Q183 property:P530 resource:Q641879 }
No
action is_in
entity Thiessow
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Thiessow']
ASK WHERE { resource:Germany property:diplomatic_relation resource:Thiessow }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q3210990 Q183
P530 P17
Q15617994
USER
Which administrative territories holds diplomatic relationship with Germany or are Sungryong Hall a part of ?
OR((Q183,P530,c(Q15617994)), (Q3210990,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q183
relation P530
action find
entity Q3210990
relation P17
type Q15617994
{'OR': [['Q183', 'P530', {'concept': 'Q15617994'}], ['Q3210990', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q183 property:P530 ?y } UNION { resource:Q3210990 property:P17 ?y } } . ?y rdf:type ontology:Q15617994 }
Sungryong Hall Germany
action filter_type
action union
action find
entity Germany
relation diplomatic relation
action find
entity Sungryong Hall
relation country
type designation for an administrative territorial entity
{'OR': [['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Sungryong Hall', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Germany property:diplomatic_relation ?y } UNION { resource:Sungryong_Hall property:country ?y } } . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q423 Q224 Q43 Q668 Q851 Q794 Q736 Q1037 Q811 Q233
SYSTEM
Some of them are North Korea, Croatia, Turkey, India, Saudi Arabia, Iran, Ecuador, Rwanda, Nicaragua, Malta
Q804 Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q783 Q265 Q833 Q711 Q717 Q252 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q739 Q241 Q242 Q811 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q929 Q39 Q38 Q986 Q423 Q983 Q851 Q733 Q734 Q736 Q730 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q29 Q1049 Q189 Q843 Q184 Q1029 Q1028 Q786 Q347 Q227 Q225 Q224 Q222 Q96 Q229 Q228 Q17 Q902 Q1036 Q1037 Q1008 Q1032 Q1033 Q1030 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q750 Q212 Q213 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q1009 Q974 Q971 Q79 Q77 Q878 Q774 Q948 Q810 Q1019 Q1016 Q1011 Q945 Q869 Q953
OR((Q183,P530,c(Q15617994)), (Q3210990,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q183
relation P530
action find
entity Q3210990
relation P17
type Q15617994
[ANSWERS] hold diplomatic relationship with Germany or are Sungryong Hall a part of
{'OR': [['Q183', 'P530', {'concept': 'Q15617994'}], ['Q3210990', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q183 property:P530 ?y } UNION { resource:Q3210990 property:P17 ?y } } . ?y rdf:type ontology:Q15617994 }
Panama Israel Costa Rica Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Malaysia Mongolia Venezuela Indonesia Serbia Chad South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Colombia Cuba Belize Nicaragua Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Central African Republic Switzerland Italy Eritrea North Korea Equatorial Guinea Saudi Arabia Paraguay Guyana Ecuador Suriname Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Spain Sudan Iceland Pakistan Belarus Mozambique Morocco Dominican Republic Liechtenstein Azerbaijan Bosnia and Herzegovina Croatia Albania Mexico Cyprus Andorra Japan Bangladesh Uganda Rwanda Côte d'Ivoire Niger Nigeria Namibia Burkina Faso Burundi Benin Botswana Chile Ethiopia Kenya Ghana Bolivia Ukraine Czech Republic Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Cameroon Democratic Republic of the Congo Republic of the Congo Egypt Uruguay United Arab Emirates Guatemala Tunisia Jordan Madagascar Libya Cape Verde Togo Thailand Zambia
North Korea, Croatia, Turkey, India, Saudi Arabia, Iran, Ecuador, Rwanda, Nicaragua and Malta hold diplomatic relationship with Germany or are Sungryong Hall a part of
North Korea Croatia Turkey India Saudi Arabia Iran Ecuador Rwanda Nicaragua Malta
action filter_type
action union
action find
entity Germany
relation diplomatic relation
action find
entity Sungryong Hall
relation country
type designation for an administrative territorial entity
{'OR': [['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Sungryong Hall', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Germany property:diplomatic_relation ?y } UNION { resource:Sungryong_Hall property:country ?y } } . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q769
P530
Q15617994 Q1048835
USER
How many political territories have ambassadorial relations with around the same number of administrative territories as Grenada ?
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q769
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?g ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?j ) AS ?e ) WHERE { ?c property:P530 ?j . ?c rdf:type ontology:Q1048835 . ?j rdf:type ontology:Q15617994 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?m ) WHERE { resource:Q769 property:P530 ?z . ?z rdf:type ontology:Q1048835 } } . FILTER ( ?e = ?m ) }
Grenada
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Grenada
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?g ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?j ) AS ?e ) WHERE { ?c property:diplomatic_relation ?j . ?c rdf:type ontology:political_territorial_entity . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?m ) WHERE { resource:Grenada property:diplomatic_relation ?z . ?z rdf:type ontology:political_territorial_entity } } . FILTER ( ?e = ?m ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
11
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q769
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?g ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?j ) AS ?e ) WHERE { ?c property:P530 ?j . ?c rdf:type ontology:Q1048835 . ?j rdf:type ontology:Q15617994 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?m ) WHERE { resource:Q769 property:P530 ?z . ?z rdf:type ontology:Q1048835 } } . FILTER ( ?e = ?m ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
11
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Grenada
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?g ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?j ) AS ?e ) WHERE { ?c property:diplomatic_relation ?j . ?c rdf:type ontology:political_territorial_entity . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?m ) WHERE { resource:Grenada property:diplomatic_relation ?z . ?z rdf:type ontology:political_territorial_entity } } . FILTER ( ?e = ?m ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q1000
P530
Q15617994 Q1048835
USER
And how about Gabon?
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q1000
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?c ) WHERE { resource:Q1000 property:P530 ?p . ?p rdf:type ontology:Q1048835 } } . FILTER ( ?e = ?c ) . { SELECT DISTINCT ?s ( COUNT ( ?t ) AS ?e ) WHERE { ?s property:P530 ?t . ?s rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q15617994 } GROUP BY ?s } }
Gabon
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Gabon
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?c ) WHERE { resource:Gabon property:diplomatic_relation ?p . ?p rdf:type ontology:political_territorial_entity } } . FILTER ( ?e = ?c ) . { SELECT DISTINCT ?s ( COUNT ( ?t ) AS ?e ) WHERE { ?s property:diplomatic_relation ?t . ?s rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?s } }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
11
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q1000
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?c ) WHERE { resource:Q1000 property:P530 ?p . ?p rdf:type ontology:Q1048835 } } . FILTER ( ?e = ?c ) . { SELECT DISTINCT ?s ( COUNT ( ?t ) AS ?e ) WHERE { ?s property:P530 ?t . ?s rdf:type ontology:Q1048835 . ?t rdf:type ontology:Q15617994 } GROUP BY ?s } }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
11
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Gabon
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?c ) WHERE { resource:Gabon property:diplomatic_relation ?p . ?p rdf:type ontology:political_territorial_entity } } . FILTER ( ?e = ?c ) . { SELECT DISTINCT ?s ( COUNT ( ?t ) AS ?e ) WHERE { ?s property:diplomatic_relation ?t . ?s rdf:type ontology:political_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?s } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q974
P36
Q486972 Q20667921 Q15617994
USER
Which administrative territories contain greater number of human settlements or french administrative divisions as their capital than Democratic Republic of the Congo ?
(c(Q15617994),P36,c(Q486972)|c(Q20667921))
action greater
action union
action find_tuple_counts
relation P36
type Q15617994
type Q486972
action find_tuple_counts
relation P36
type Q15617994
type Q20667921
action count
action filter_multi_types
action find
entity Q974
relation P36
type Q486972
type Q20667921
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q486972'}, {'concept': 'Q20667921'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?y ) ?a WHERE { { ?a property:P36 ?i . ?a rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q486972 } UNION { ?a property:P36 ?i . ?a rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q20667921 } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?f ) WHERE { resource:Q974 property:P36 ?k . { { ?k rdf:type ontology:Q486972 } UNION { ?k rdf:type ontology:Q20667921 } } } } . FILTER ( ?y > ?f ) }
Democratic Republic of the Congo
action greater
action union
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type human settlement
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type type of french administrative division
action count
action filter_multi_types
action find
entity Democratic Republic of the Congo
relation capital
type human settlement
type type of french administrative division
[{'concept': 'designation for an administrative territorial entity'}, 'capital', [{'concept': 'human settlement'}, {'concept': 'type of french administrative division'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?y ) ?a WHERE { { ?a property:capital ?i . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:human_settlement } UNION { ?a property:capital ?i . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:type_of_french_administrative_division } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?f ) WHERE { resource:Democratic_Republic_of_the_Congo property:capital ?k . { { ?k rdf:type ontology:human_settlement } UNION { ?k rdf:type ontology:type_of_french_administrative_division } } } } . FILTER ( ?y > ?f ) }
[]
human settlement type of french administrative division designation for an administrative territorial entity
Q965 Q12753 Q12584
SYSTEM
Burkina Faso, Seine-et-Marne, Maine-et-Loire
Q12631 Q2991354 Q3368 Q1111401 Q2998020 Q3044731 Q12689 Q3377 Q3372 Q3093 Q3259 Q12594 Q16628524 Q12798 Q12792 Q12700 Q12703 Q12709 Q12569 Q12574 Q12642 Q3216 Q3194 Q541589 Q12804 Q12808 Q3326 Q3286 Q12589 Q3266 Q3105 Q33788 Q12740 Q12745 Q12779 Q12607 Q12576 Q2281221 Q12694 Q12515 Q12517 Q3364 Q3148 Q12675 Q12584 Q12580 Q3131 Q12788 Q12784 Q12782 Q12730 Q12736 Q662056 Q12657 Q12652 Q12556 Q12816 Q2528268 Q3353 Q3357 Q492437 Q492430 Q3278 Q3184 Q2900529 Q12772 Q1999970 Q155019 Q107426 Q12661 Q1270623 Q965 Q3125 Q3120 Q3110307 Q12722 Q12553 Q12620 Q12626 Q12543 Q12563 Q426025 Q3349 Q3083 Q3240 Q3249 Q3164 Q12761 Q12765 Q3334 Q12572 Q12578 Q12679 Q3846423 Q3113 Q12789 Q12758 Q12753 Q12751 Q12564
(c(Q15617994),P36,c(Q486972)|c(Q20667921))
action greater
action union
action find_tuple_counts
relation P36
type Q15617994
type Q486972
action find_tuple_counts
relation P36
type Q15617994
type Q20667921
action count
action filter_multi_types
action find
entity Q974
relation P36
type Q486972
type Q20667921
[ANSWERS] contain greater number of human settlements or french administrative divisions as their capital than Democratic Republic of the Congo
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q486972'}, {'concept': 'Q20667921'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?y ) ?a WHERE { { ?a property:P36 ?i . ?a rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q486972 } UNION { ?a property:P36 ?i . ?a rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q20667921 } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?f ) WHERE { resource:Q974 property:P36 ?k . { { ?k rdf:type ontology:Q486972 } UNION { ?k rdf:type ontology:Q20667921 } } } } . FILTER ( ?y > ?f ) }
Meuse Aquiles Serdán Municipality Essonne Kispest District Corse Guyane Pas-de-Calais Eure-et-Loir Eure Aisne Cantal Marne San Salvador el Verde municipality Vendée Vaucluse Hautes-Pyrénées Pyrénées-Atlantiques Pyrénées-Orientales Loire Loiret Morbihan Aveyron Aube Ems-Supérieur Vienne Haute-Vienne Corrèze Cher Manche Charente Vosges New Caledonia Sarthe Savoie Tarn-et-Garonne Haute-Marne Lot Principality of Orange Puy-de-Dôme Gard Gers Drôme Ardèche Oise Maine-et-Loire Lozère Alpes-de-Haute-Provence Val-de-Marne Val-d'Oise Territoire de Belfort Haute-Saône Saône-et-Loire Cushamen Department Nièvre Moselle Indre-et-Loire Yonne Mont-Blanc Creuse Dordogne Bouches-du-Weser Bouches-de-l'Elbe Charente-Maritime Ariège Bezirk Lothringen Tarn Upper Alsace Duchy of Lorraine Anjou Nord Meurthe Burkina Faso Hautes-Alpes Jura Golo Haut-Rhin Indre Mayenne Meurthe-et-Moselle Hauts-de-Seine Landes Duchy of Savoy Côtes-d'Armor Ain Bouches-du-Rhône Calvados Ardennes Seine-Saint-Denis Deux-Sèvres Haute-Corse Haute-Loire Lot-et-Garonne Orne Viesca Municipality Allier Var Seine-Maritime Seine-et-Marne Haute-Savoie Loir-et-Cher
Burkina Faso, Seine-et-Marne and Maine-et-Loire contain greater number of human settlements or french administrative divisions as their capital than Democratic Republic of the Congo
Burkina Faso Seine-et-Marne Maine-et-Loire
action greater
action union
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type human settlement
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type type of french administrative division
action count
action filter_multi_types
action find
entity Democratic Republic of the Congo
relation capital
type human settlement
type type of french administrative division
[{'concept': 'designation for an administrative territorial entity'}, 'capital', [{'concept': 'human settlement'}, {'concept': 'type of french administrative division'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?y ) ?a WHERE { { ?a property:capital ?i . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:human_settlement } UNION { ?a property:capital ?i . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:type_of_french_administrative_division } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?f ) WHERE { resource:Democratic_Republic_of_the_Congo property:capital ?k . { { ?k rdf:type ontology:human_settlement } UNION { ?k rdf:type ontology:type_of_french_administrative_division } } } } . FILTER ( ?y > ?f ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q414
P36
Q486972 Q20667921 Q15617994
USER
And also tell me about Argentina?
(c(Q15617994),P36,c(Q486972)|c(Q20667921))
action greater
action union
action find_tuple_counts
relation P36
type Q15617994
type Q486972
action find_tuple_counts
relation P36
type Q15617994
type Q20667921
action count
action filter_multi_types
action find
entity Q414
relation P36
type Q486972
type Q20667921
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q486972'}, {'concept': 'Q20667921'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?p ) ?a WHERE { VALUES ( ?j ) { ( ontology:Q486972 ) ( ontology:Q20667921 ) } . ?e rdf:type ?j } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { resource:Q414 property:P36 ?k . { ?k rdf:type ?q . VALUES ( ?q ) { ( ontology:Q486972 ) ( ontology:Q20667921 ) } } } } . FILTER ( ?p > ?g ) }
Argentina
action greater
action union
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type human settlement
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type type of french administrative division
action count
action filter_multi_types
action find
entity Argentina
relation capital
type human settlement
type type of french administrative division
[{'concept': 'designation for an administrative territorial entity'}, 'capital', [{'concept': 'human settlement'}, {'concept': 'type of french administrative division'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?p ) ?a WHERE { VALUES ( ?j ) { ( ontology:human_settlement ) ( ontology:type_of_french_administrative_division ) } . ?e rdf:type ?j } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { resource:Argentina property:capital ?k . { ?k rdf:type ?q . VALUES ( ?q ) { ( ontology:human_settlement ) ( ontology:type_of_french_administrative_division ) } } } } . FILTER ( ?p > ?g ) }
[]
human settlement type of french administrative division designation for an administrative territorial entity
Q965 Q12753 Q12584
SYSTEM
Burkina Faso, Seine-et-Marne, Maine-et-Loire
Q12631 Q2991354 Q3368 Q1111401 Q2998020 Q3044731 Q12689 Q3377 Q3372 Q3093 Q3259 Q12594 Q16628524 Q12798 Q12792 Q12700 Q12703 Q12709 Q12569 Q12574 Q12642 Q3216 Q3194 Q541589 Q12804 Q12808 Q3326 Q3286 Q12589 Q3266 Q3105 Q33788 Q12740 Q12745 Q12779 Q12607 Q12576 Q2281221 Q12694 Q12515 Q12517 Q3364 Q3148 Q12675 Q12584 Q12580 Q3131 Q12788 Q12784 Q12782 Q12730 Q12736 Q662056 Q12657 Q12652 Q12556 Q12816 Q2528268 Q3353 Q3357 Q492437 Q492430 Q3278 Q3184 Q2900529 Q12772 Q1999970 Q155019 Q107426 Q12661 Q1270623 Q965 Q3125 Q3120 Q3110307 Q12722 Q12553 Q12620 Q12626 Q12543 Q12563 Q426025 Q3349 Q3083 Q3240 Q3249 Q3164 Q12761 Q12765 Q3334 Q12572 Q12578 Q12679 Q3846423 Q3113 Q12789 Q12758 Q12753 Q12751 Q12564
(c(Q15617994),P36,c(Q486972)|c(Q20667921))
action greater
action union
action find_tuple_counts
relation P36
type Q15617994
type Q486972
action find_tuple_counts
relation P36
type Q15617994
type Q20667921
action count
action filter_multi_types
action find
entity Q414
relation P36
type Q486972
type Q20667921
[ANSWERS]
[{'concept': 'Q15617994'}, 'P36', [{'concept': 'Q486972'}, {'concept': 'Q20667921'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?p ) ?a WHERE { VALUES ( ?j ) { ( ontology:Q486972 ) ( ontology:Q20667921 ) } . ?e rdf:type ?j } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { resource:Q414 property:P36 ?k . { ?k rdf:type ?q . VALUES ( ?q ) { ( ontology:Q486972 ) ( ontology:Q20667921 ) } } } } . FILTER ( ?p > ?g ) }
Meuse Aquiles Serdán Municipality Essonne Kispest District Corse Guyane Pas-de-Calais Eure-et-Loir Eure Aisne Cantal Marne San Salvador el Verde municipality Vendée Vaucluse Hautes-Pyrénées Pyrénées-Atlantiques Pyrénées-Orientales Loire Loiret Morbihan Aveyron Aube Ems-Supérieur Vienne Haute-Vienne Corrèze Cher Manche Charente Vosges New Caledonia Sarthe Savoie Tarn-et-Garonne Haute-Marne Lot Principality of Orange Puy-de-Dôme Gard Gers Drôme Ardèche Oise Maine-et-Loire Lozère Alpes-de-Haute-Provence Val-de-Marne Val-d'Oise Territoire de Belfort Haute-Saône Saône-et-Loire Cushamen Department Nièvre Moselle Indre-et-Loire Yonne Mont-Blanc Creuse Dordogne Bouches-du-Weser Bouches-de-l'Elbe Charente-Maritime Ariège Bezirk Lothringen Tarn Upper Alsace Duchy of Lorraine Anjou Nord Meurthe Burkina Faso Hautes-Alpes Jura Golo Haut-Rhin Indre Mayenne Meurthe-et-Moselle Hauts-de-Seine Landes Duchy of Savoy Côtes-d'Armor Ain Bouches-du-Rhône Calvados Ardennes Seine-Saint-Denis Deux-Sèvres Haute-Corse Haute-Loire Lot-et-Garonne Orne Viesca Municipality Allier Var Seine-Maritime Seine-et-Marne Haute-Savoie Loir-et-Cher
Burkina Faso Seine-et-Marne Maine-et-Loire
action greater
action union
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type human settlement
action find_tuple_counts
relation capital
type designation for an administrative territorial entity
type type of french administrative division
action count
action filter_multi_types
action find
entity Argentina
relation capital
type human settlement
type type of french administrative division
[{'concept': 'designation for an administrative territorial entity'}, 'capital', [{'concept': 'human settlement'}, {'concept': 'type of french administrative division'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?p ) ?a WHERE { VALUES ( ?j ) { ( ontology:human_settlement ) ( ontology:type_of_french_administrative_division ) } . ?e rdf:type ?j } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { resource:Argentina property:capital ?k . { ?k rdf:type ?q . VALUES ( ?q ) { ( ontology:human_settlement ) ( ontology:type_of_french_administrative_division ) } } } } . FILTER ( ?p > ?g ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q668
P793
Q211790
USER
What event is India associated with ?
(Q668,P793,c(Q211790))
action filter_type
action find
entity Q668
relation P793
type Q211790
['Q668', 'P793', {'concept': 'Q211790'}]
SELECT DISTINCT ?u WHERE { resource:Q668 property:P793 ?u . ?u rdf:type ontology:Q211790 }
India
action filter_type
action find
entity India
relation significant event
type logical connective
['India', 'significant event', {'concept': 'logical connective'}]
SELECT DISTINCT ?u WHERE { resource:India property:significant_event ?u . ?u rdf:type ontology:logical_connective }
[]
logical connective
Q37055
SYSTEM
independence
Q37055
(Q668,P793,c(Q211790))
action filter_type
action find
entity Q668
relation P793
type Q211790
India is associated with [ANSWER]
['Q668', 'P793', {'concept': 'Q211790'}]
SELECT DISTINCT ?u WHERE { resource:Q668 property:P793 ?u . ?u rdf:type ontology:Q211790 }
independence
India is associated with independence
independence
action filter_type
action find
entity India
relation significant event
type logical connective
['India', 'significant event', {'concept': 'logical connective'}]
SELECT DISTINCT ?u WHERE { resource:India property:significant_event ?u . ?u rdf:type ontology:logical_connective }
[]