Simple Question (Direct)
Simple Question
Q73753
P21
Q290
USER
Which sex does Franz von Sonnleithner belong to ?
(Q73753,P21,c(Q290))
action filter_type
action find
entity Q73753
relation P21
type Q290
['Q73753', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q73753 property:P21 ?r . ?r rdf:type ontology:Q290 }
Franz von Sonnleithner
action filter_type
action find
entity Franz von Sonnleithner
relation gender
type sex
['Franz von Sonnleithner', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:Franz_von_Sonnleithner property:gender ?r . ?r rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q73753,P21,c(Q290))
action filter_type
action find
entity Q73753
relation P21
type Q290
Franz von Sonnleithner belongs to [ANSWER]
['Q73753', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { resource:Q73753 property:P21 ?r . ?r rdf:type ontology:Q290 }
male
Franz von Sonnleithner belongs to male
male
action filter_type
action find
entity Franz von Sonnleithner
relation gender
type sex
['Franz von Sonnleithner', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { resource:Franz_von_Sonnleithner property:gender ?r . ?r rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q73753
P20
Q5119
USER
Where did Franz von Sonnleithner die ?
(Q73753,P20,c(Q5119))
action filter_type
action find
entity Q73753
relation P20
type Q5119
['Q73753', 'P20', {'concept': 'Q5119'}]
SELECT DISTINCT ?s WHERE { resource:Q73753 property:P20 ?s . ?s rdf:type ontology:Q5119 }
Franz von Sonnleithner
action filter_type
action find
entity Franz von Sonnleithner
relation place of death
type capital
['Franz von Sonnleithner', 'place of death', {'concept': 'capital'}]
SELECT DISTINCT ?s WHERE { resource:Franz_von_Sonnleithner property:place_of_death ?s . ?s rdf:type ontology:capital }
[]
capital
Q159548
SYSTEM
Ingelheim am Rhein
Q159548
(Q73753,P20,c(Q5119))
action filter_type
action find
entity Q73753
relation P20
type Q5119
Franz von Sonnleithner died in [ANSWER]
['Q73753', 'P20', {'concept': 'Q5119'}]
SELECT DISTINCT ?s WHERE { resource:Q73753 property:P20 ?s . ?s rdf:type ontology:Q5119 }
Ingelheim am Rhein
Franz von Sonnleithner died in Ingelheim am Rhein
Ingelheim am Rhein
action filter_type
action find
entity Franz von Sonnleithner
relation place of death
type capital
['Franz von Sonnleithner', 'place of death', {'concept': 'capital'}]
SELECT DISTINCT ?s WHERE { resource:Franz_von_Sonnleithner property:place_of_death ?s . ?s rdf:type ontology:capital }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q159548 Q158893 Q7296469
P190
Q15617994
USER
Is that capital sister town of Friedrichshain-Kreuzberg and Ravenna School District ?
(Q159548,P190,Q158893) (Q159548,P190,Q7296469)
action is_in
entity Q159548
action intersection
action find_reverse
entity Q158893
relation P190
action find_reverse
entity Q7296469
relation P190
['Q159548', 'P190', 'Q158893'] ['Q159548', 'P190', 'Q7296469']
ASK WHERE { resource:Q159548 property:P190 resource:Q7296469 . resource:Q159548 property:P190 resource:Q158893 }
Ingelheim am Rhein Friedrichshain-Kreuzberg Ravenna School District
action is_in
entity Ingelheim am Rhein
action intersection
action find_reverse
entity Friedrichshain-Kreuzberg
relation sister city
action find_reverse
entity Ravenna School District
relation sister city
['Ingelheim am Rhein', 'sister city', 'Friedrichshain-Kreuzberg'] ['Ingelheim am Rhein', 'sister city', 'Ravenna School District']
ASK WHERE { resource:Ingelheim_am_Rhein property:sister_city resource:Ravenna_School_District . resource:Ingelheim_am_Rhein property:sister_city resource:Friedrichshain-Kreuzberg }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q159548,P190,Q158893) (Q159548,P190,Q7296469)
action is_in
entity Q159548
action intersection
action find_reverse
entity Q158893
relation P190
action find_reverse
entity Q7296469
relation P190
[ANSWER]
['Q159548', 'P190', 'Q158893'] ['Q159548', 'P190', 'Q7296469']
ASK WHERE { resource:Q159548 property:P190 resource:Q7296469 . resource:Q159548 property:P190 resource:Q158893 }
YES and NO respectively
action is_in
entity Ingelheim am Rhein
action intersection
action find_reverse
entity Friedrichshain-Kreuzberg
relation sister city
action find_reverse
entity Ravenna School District
relation sister city
['Ingelheim am Rhein', 'sister city', 'Friedrichshain-Kreuzberg'] ['Ingelheim am Rhein', 'sister city', 'Ravenna School District']
ASK WHERE { resource:Ingelheim_am_Rhein property:sister_city resource:Ravenna_School_District . resource:Ingelheim_am_Rhein property:sister_city resource:Friedrichshain-Kreuzberg }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q73753 Q1751965
P27
Q1048835
USER
Is Franz von Sonnleithner a civilian of Pinoso ?
(Q73753,P27,Q1751965)
action is_in
entity Q1751965
action find
entity Q73753
relation P27
['Q73753', 'P27', 'Q1751965']
ASK WHERE { resource:Q73753 property:P27 resource:Q1751965 }
Franz von Sonnleithner Pinoso
action is_in
entity Pinoso
action find
entity Franz von Sonnleithner
relation country of citizenship
['Franz von Sonnleithner', 'country of citizenship', 'Pinoso']
ASK WHERE { resource:Franz_von_Sonnleithner property:country_of_citizenship resource:Pinoso }
[]
political territorial entity
SYSTEM
NO
(Q73753,P27,Q1751965)
action is_in
entity Q1751965
action find
entity Q73753
relation P27
[ANSWER]
['Q73753', 'P27', 'Q1751965']
ASK WHERE { resource:Q73753 property:P27 resource:Q1751965 }
No
action is_in
entity Pinoso
action find
entity Franz von Sonnleithner
relation country of citizenship
['Franz von Sonnleithner', 'country of citizenship', 'Pinoso']
ASK WHERE { resource:Franz_von_Sonnleithner property:country_of_citizenship resource:Pinoso }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q159548 Q190827
P190
Q20667921
USER
Is Autun partner town of Ingelheim am Rhein ?
(Q159548,P190,Q190827)
action is_in
entity Q190827
action find
entity Q159548
relation P190
['Q159548', 'P190', 'Q190827']
ASK WHERE { resource:Q159548 property:P190 resource:Q190827 }
Ingelheim am Rhein Autun
action is_in
entity Autun
action find
entity Ingelheim am Rhein
relation sister city
['Ingelheim am Rhein', 'sister city', 'Autun']
ASK WHERE { resource:Ingelheim_am_Rhein property:sister_city resource:Autun }
[]
type of french administrative division
SYSTEM
YES
(Q159548,P190,Q190827)
action is_in
entity Q190827
action find
entity Q159548
relation P190
[ANSWER]
['Q159548', 'P190', 'Q190827']
ASK WHERE { resource:Q159548 property:P190 resource:Q190827 }
Yes
action is_in
entity Autun
action find
entity Ingelheim am Rhein
relation sister city
['Ingelheim am Rhein', 'sister city', 'Autun']
ASK WHERE { resource:Ingelheim_am_Rhein property:sister_city resource:Autun }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q73753
P106
Q28640 Q12737077
USER
How many professions or occupations are the professions of Franz von Sonnleithner ?
(Q73753,P106,c(Q28640)) (Q73753,P106,c(Q12737077))
action count
action union
action filter_type
action find
entity Q73753
relation P106
type Q28640
action filter_type
action find
entity Q73753
relation P106
type Q12737077
['Q73753', 'P106', {'concept': 'Q28640'}] ['Q73753', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?h ) WHERE { { ?x rdf:type ontology:Q28640 . resource:Q73753 property:P106 ?x } UNION { resource:Q73753 property:P106 ?x . ?x rdf:type ontology:Q12737077 } }
Franz von Sonnleithner
action count
action union
action filter_type
action find
entity Franz von Sonnleithner
relation occupation
type profession
action filter_type
action find
entity Franz von Sonnleithner
relation occupation
type occupation
['Franz von Sonnleithner', 'occupation', {'concept': 'profession'}] ['Franz von Sonnleithner', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?h ) WHERE { { ?x rdf:type ontology:profession . resource:Franz_von_Sonnleithner property:occupation ?x } UNION { resource:Franz_von_Sonnleithner property:occupation ?x . ?x rdf:type ontology:occupation } }
[]
profession occupation
SYSTEM
2
Q193391 Q185351
(Q73753,P106,c(Q28640)) (Q73753,P106,c(Q12737077))
action count
action union
action filter_type
action find
entity Q73753
relation P106
type Q28640
action filter_type
action find
entity Q73753
relation P106
type Q12737077
[ANSWER]
['Q73753', 'P106', {'concept': 'Q28640'}] ['Q73753', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?h ) WHERE { { ?x rdf:type ontology:Q28640 . resource:Q73753 property:P106 ?x } UNION { resource:Q73753 property:P106 ?x . ?x rdf:type ontology:Q12737077 } }
diplomat jurist
2
action count
action union
action filter_type
action find
entity Franz von Sonnleithner
relation occupation
type profession
action filter_type
action find
entity Franz von Sonnleithner
relation occupation
type occupation
['Franz von Sonnleithner', 'occupation', {'concept': 'profession'}] ['Franz von Sonnleithner', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?h ) WHERE { { ?x rdf:type ontology:profession . resource:Franz_von_Sonnleithner property:occupation ?x } UNION { resource:Franz_von_Sonnleithner property:occupation ?x . ?x rdf:type ontology:occupation } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q159548
P6
Q502895
USER
Who is the head of the government of Ingelheim am Rhein ?
(Q159548,P6,c(Q502895))
action filter_type
action find
entity Q159548
relation P6
type Q502895
['Q159548', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q159548 property:P6 ?s . ?s rdf:type ontology:Q502895 }
Ingelheim am Rhein
action filter_type
action find
entity Ingelheim am Rhein
relation head of government
type common name
['Ingelheim am Rhein', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:Ingelheim_am_Rhein property:head_of_government ?s . ?s rdf:type ontology:common_name }
[]
common name
Q1720775
SYSTEM
Ralf Claus
Q1720775
(Q159548,P6,c(Q502895))
action filter_type
action find
entity Q159548
relation P6
type Q502895
The head of the government of Ingelheim am Rhein is born [ANSWER]
['Q159548', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q159548 property:P6 ?s . ?s rdf:type ontology:Q502895 }
Ralf Claus
The head of the government of Ingelheim am Rhein is born Ralf Claus
Ralf Claus
action filter_type
action find
entity Ingelheim am Rhein
relation head of government
type common name
['Ingelheim am Rhein', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:Ingelheim_am_Rhein property:head_of_government ?s . ?s rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q491839 Q158893
P47
Q15617994
USER
Which administrative territories have an adjacent border with Friedrichshain-Kreuzberg or Limina ?
OR((c(Q15617994),P47,Q158893), (c(Q15617994),P47,Q491839))
action filter_type
action union
action find_reverse
entity Q158893
relation P47
action find_reverse
entity Q491839
relation P47
type Q15617994
{'OR': [[{'concept': 'Q15617994'}, 'P47', 'Q158893'], [{'concept': 'Q15617994'}, 'P47', 'Q491839']]}
SELECT DISTINCT ?i WHERE { { ?i property:P47 ?n . VALUES ( ?n ) { ( resource:Q491839 ) ( resource:Q158893 ) } } . ?i rdf:type ontology:Q15617994 }
Limina Friedrichshain-Kreuzberg
action filter_type
action union
action find_reverse
entity Friedrichshain-Kreuzberg
relation shares border with
action find_reverse
entity Limina
relation shares border with
type designation for an administrative territorial entity
{'OR': [[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Friedrichshain-Kreuzberg'], [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Limina']]}
SELECT DISTINCT ?i WHERE { { ?i property:shares_border_with ?n . VALUES ( ?n ) { ( resource:Limina ) ( resource:Friedrichshain-Kreuzberg ) } } . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q329609 Q158089 Q4071168 Q490330 Q163012 Q158106 Q490919 Q492611 Q496120 Q491830
SYSTEM
Some of them are Lichtenberg, Treptow-Köpenick, Neukölln, Roccafiorita, Pankow, Tempelhof-Schöneberg, Mongiuffi Melia, Antillo, Forza d'Agrò, Casalvecchio Siculo
Q496120 Q158106 Q490919 Q491830 Q490330 Q329609 Q492611 Q163966 Q4071168 Q163012 Q158089
OR((c(Q15617994),P47,Q158893), (c(Q15617994),P47,Q491839))
action filter_type
action union
action find_reverse
entity Q158893
relation P47
action find_reverse
entity Q491839
relation P47
type Q15617994
[ANSWERS] have an adjacent border with Friedrichshain-Kreuzberg or Limina
{'OR': [[{'concept': 'Q15617994'}, 'P47', 'Q158893'], [{'concept': 'Q15617994'}, 'P47', 'Q491839']]}
SELECT DISTINCT ?i WHERE { { ?i property:P47 ?n . VALUES ( ?n ) { ( resource:Q491839 ) ( resource:Q158893 ) } } . ?i rdf:type ontology:Q15617994 }
Forza d'Agrò Tempelhof-Schöneberg Mongiuffi Melia Casalvecchio Siculo Roccafiorita Lichtenberg Antillo Mitte Neukölln Pankow Treptow-Köpenick
Lichtenberg, Treptow-Köpenick, Neukölln, Roccafiorita, Pankow, Tempelhof-Schöneberg, Mongiuffi Melia, Antillo, Forza d'Agrò and Casalvecchio Siculo have an adjacent border with Friedrichshain-Kreuzberg or Limina
Lichtenberg Treptow-Köpenick Neukölln Roccafiorita Pankow Tempelhof-Schöneberg Mongiuffi Melia Antillo Forza d'Agrò Casalvecchio Siculo
action filter_type
action union
action find_reverse
entity Friedrichshain-Kreuzberg
relation shares border with
action find_reverse
entity Limina
relation shares border with
type designation for an administrative territorial entity
{'OR': [[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Friedrichshain-Kreuzberg'], [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Limina']]}
SELECT DISTINCT ?i WHERE { { ?i property:shares_border_with ?n . VALUES ( ?n ) { ( resource:Limina ) ( resource:Friedrichshain-Kreuzberg ) } } . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2323355 Q159548
P17
Q1048835
USER
Which political territories do Ingelheim am Rhein or St. Theresia vom Kinde Jesu belong to ?
OR((Q159548,P17,c(Q1048835)), (Q2323355,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q159548
relation P17
action find
entity Q2323355
relation P17
type Q1048835
{'OR': [['Q159548', 'P17', {'concept': 'Q1048835'}], ['Q2323355', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?b WHERE { { VALUES ( ?k ) { ( resource:Q159548 ) ( resource:Q2323355 ) } . ?k property:P17 ?b } . ?b rdf:type ontology:Q1048835 }
St. Theresia vom Kinde Jesu Ingelheim am Rhein
action filter_type
action union
action find
entity Ingelheim am Rhein
relation country
action find
entity St. Theresia vom Kinde Jesu
relation country
type political territorial entity
{'OR': [['Ingelheim am Rhein', 'country', {'concept': 'political territorial entity'}], ['St. Theresia vom Kinde Jesu', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { VALUES ( ?k ) { ( resource:Ingelheim_am_Rhein ) ( resource:St._Theresia_vom_Kinde_Jesu ) } . ?k property:country ?b } . ?b rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
OR((Q159548,P17,c(Q1048835)), (Q2323355,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q159548
relation P17
action find
entity Q2323355
relation P17
type Q1048835
[ANSWER] Ingelheim am Rhein or St. Theresia vom Kinde Jesu belong to
{'OR': [['Q159548', 'P17', {'concept': 'Q1048835'}], ['Q2323355', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?b WHERE { { VALUES ( ?k ) { ( resource:Q159548 ) ( resource:Q2323355 ) } . ?k property:P17 ?b } . ?b rdf:type ontology:Q1048835 }
Germany
Germany Ingelheim am Rhein or St. Theresia vom Kinde Jesu belong to
Germany
action filter_type
action union
action find
entity Ingelheim am Rhein
relation country
action find
entity St. Theresia vom Kinde Jesu
relation country
type political territorial entity
{'OR': [['Ingelheim am Rhein', 'country', {'concept': 'political territorial entity'}], ['St. Theresia vom Kinde Jesu', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { VALUES ( ?k ) { ( resource:Ingelheim_am_Rhein ) ( resource:St._Theresia_vom_Kinde_Jesu ) } . ?k property:country ?b } . ?b rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q954
P530
Q15617994 Q1048835 Q15617994
USER
Which administrative territories have diplomatic relations with approximately the same number of political territories or administrative territories as Zimbabwe ?
(c(Q1048835)|c(Q15617994),P530,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_multi_types
action find_reverse
entity Q954
relation P530
type Q1048835
type Q15617994
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?f ) AS ?d ) WHERE { VALUES ( ?x ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?f rdf:type ?x } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?p ) WHERE { { ?b rdf:type ?c . VALUES ( ?c ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } } . ?b property:P530 resource:Q954 } } . FILTER ( ?d = ?p ) }
Zimbabwe
action approx
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Zimbabwe
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?f ) AS ?d ) WHERE { VALUES ( ?x ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?f rdf:type ?x } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?p ) WHERE { { ?b rdf:type ?c . VALUES ( ?c ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } } . ?b property:diplomatic_relation resource:Zimbabwe } } . FILTER ( ?d = ?p ) }
[]
designation for an administrative territorial entity political territorial entity designation for an administrative territorial entity
Q230 Q55 Q36
SYSTEM
Georgia, Netherlands, Poland
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q262 Q783 Q784 Q265 Q37 Q712 Q711 Q710 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q43 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q929 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q736 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869 Q953
(c(Q1048835)|c(Q15617994),P530,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_multi_types
action find_reverse
entity Q954
relation P530
type Q1048835
type Q15617994
[ANSWERS] have diplomatic relations with approximately the same number of political territories or administrative territories as Zimbabwe
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?f ) AS ?d ) WHERE { VALUES ( ?x ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?f rdf:type ?x } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?p ) WHERE { { ?b rdf:type ?c . VALUES ( ?c ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } } . ?b property:P530 resource:Q954 } } . FILTER ( ?d = ?p ) }
Federated States of Micronesia Panama Costa Rica Peru India Argentina Netherlands Algeria Honduras Dominica Uzbekistan Lithuania Fiji Mongolia Kiribati Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Turkey Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Central African Republic Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Lesotho Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Ecuador Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand Zambia
Georgia, Netherlands and Poland have diplomatic relations with approximately the same number of political territories or administrative territories as Zimbabwe
Georgia Netherlands Poland
action approx
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Zimbabwe
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?f ) AS ?d ) WHERE { VALUES ( ?x ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?f rdf:type ?x } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?p ) WHERE { { ?b rdf:type ?c . VALUES ( ?c ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } } . ?b property:diplomatic_relation resource:Zimbabwe } } . FILTER ( ?d = ?p ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q945
P530
Q15617994 Q1048835 Q15617994
USER
And how about Togo?
(c(Q1048835)|c(Q15617994),P530,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_multi_types
action find_reverse
entity Q945
relation P530
type Q1048835
type Q15617994
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?k ) AS ?z ) WHERE { VALUES ( ?l ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?k rdf:type ?l } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?c ) WHERE { ?t property:P530 resource:Q945 . { { ?t rdf:type ontology:Q1048835 } UNION { ?t rdf:type ontology:Q15617994 } } } } . FILTER ( ?z = ?c ) }
Togo
action approx
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Togo
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?k ) AS ?z ) WHERE { VALUES ( ?l ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?k rdf:type ?l } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?c ) WHERE { ?t property:diplomatic_relation resource:Togo . { { ?t rdf:type ontology:political_territorial_entity } UNION { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } . FILTER ( ?z = ?c ) }
[]
designation for an administrative territorial entity political territorial entity designation for an administrative territorial entity
Q230 Q55 Q36
SYSTEM
Georgia, Netherlands, Poland
Q702 Q804 Q800 Q419 Q414 Q55 Q262 Q783 Q784 Q265 Q37 Q712 Q711 Q710 Q717 Q837 Q252 Q399 Q398 Q657 Q258 Q45 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q929 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q736 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q945 Q678 Q29 Q33788 Q869
(c(Q1048835)|c(Q15617994),P530,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_multi_types
action find_reverse
entity Q945
relation P530
type Q1048835
type Q15617994
[ANSWERS]
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?k ) AS ?z ) WHERE { VALUES ( ?l ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?k rdf:type ?l } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?c ) WHERE { ?t property:P530 resource:Q945 . { { ?t rdf:type ontology:Q1048835 } UNION { ?t rdf:type ontology:Q15617994 } } } } . FILTER ( ?z = ?c ) }
Federated States of Micronesia Panama Costa Rica Peru Argentina Netherlands Algeria Honduras Dominica Uzbekistan Lithuania Fiji Mongolia Kiribati Venezuela Nepal Indonesia Armenia Bahrain Chad South Africa Portugal Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Central African Republic Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Lesotho Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Ecuador Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Togo Tonga Spain New Caledonia Thailand
Georgia Netherlands Poland
action approx
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Togo
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?k ) AS ?z ) WHERE { VALUES ( ?l ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?k rdf:type ?l } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?c ) WHERE { ?t property:diplomatic_relation resource:Togo . { { ?t rdf:type ontology:political_territorial_entity } UNION { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } . FILTER ( ?z = ?c ) }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q230 Q55 Q36
P1532
Q6979593
USER
Whose national association football teams are Georgia, Netherlands and Poland ?
(c(Q6979593),P1532,Q230) (c(Q6979593),P1532,Q55) (c(Q6979593),P1532,Q36)
action union
action filter_type
action find_reverse
entity Q230
relation P1532
type Q6979593
action filter_type
action find_reverse
entity Q55
relation P1532
type Q6979593
action filter_type
action find_reverse
entity Q36
relation P1532
type Q6979593
[{'concept': 'Q6979593'}, 'P1532', 'Q230'] [{'concept': 'Q6979593'}, 'P1532', 'Q55'] [{'concept': 'Q6979593'}, 'P1532', 'Q36']
SELECT DISTINCT ?b WHERE { ?b property:P1532 ?p . VALUES ( ?p ) { ( resource:Q230 ) ( resource:Q55 ) } }
Georgia Netherlands Poland
action union
action filter_type
action find_reverse
entity Georgia
relation country for sport
type national association football team
action filter_type
action find_reverse
entity Netherlands
relation country for sport
type national association football team
action filter_type
action find_reverse
entity Poland
relation country for sport
type national association football team
[{'concept': 'national association football team'}, 'country for sport', 'Georgia'] [{'concept': 'national association football team'}, 'country for sport', 'Netherlands'] [{'concept': 'national association football team'}, 'country for sport', 'Poland']
SELECT DISTINCT ?b WHERE { ?b property:country_for_sport ?p . VALUES ( ?p ) { ( resource:Georgia ) ( resource:Netherlands ) } }
[]
national association football team
Q3073431 Q841563 Q650731
SYSTEM
Poland Olympic football team, Netherlands women's national football team, Georgia women's national football team
Q650731 Q841563 Q2520066 Q3073431 Q1077259
(c(Q6979593),P1532,Q230) (c(Q6979593),P1532,Q55) (c(Q6979593),P1532,Q36)
action union
action filter_type
action find_reverse
entity Q230
relation P1532
type Q6979593
action filter_type
action find_reverse
entity Q55
relation P1532
type Q6979593
action filter_type
action find_reverse
entity Q36
relation P1532
type Q6979593
[ANSWERS] are Georgia, Netherlands and Poland
[{'concept': 'Q6979593'}, 'P1532', 'Q230'] [{'concept': 'Q6979593'}, 'P1532', 'Q55'] [{'concept': 'Q6979593'}, 'P1532', 'Q36']
SELECT DISTINCT ?b WHERE { ?b property:P1532 ?p . VALUES ( ?p ) { ( resource:Q230 ) ( resource:Q55 ) } }
Georgia women's national football team Netherlands women's national football team Netherlands Olympic football team Poland Olympic football team Poland women's national football team
Poland Olympic football team, Netherlands women's national football team and Georgia women's national football team are Georgia, Netherlands and Poland
Poland Olympic football team Netherlands women's national football team Georgia women's national football team
action union
action filter_type
action find_reverse
entity Georgia
relation country for sport
type national association football team
action filter_type
action find_reverse
entity Netherlands
relation country for sport
type national association football team
action filter_type
action find_reverse
entity Poland
relation country for sport
type national association football team
[{'concept': 'national association football team'}, 'country for sport', 'Georgia'] [{'concept': 'national association football team'}, 'country for sport', 'Netherlands'] [{'concept': 'national association football team'}, 'country for sport', 'Poland']
SELECT DISTINCT ?b WHERE { ?b property:country_for_sport ?p . VALUES ( ?p ) { ( resource:Georgia ) ( resource:Netherlands ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q650731
P641
Q349
USER
What did that national association football team participate in ?
(Q650731,P641,c(Q349))
action filter_type
action find
entity Q650731
relation P641
type Q349
['Q650731', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?u WHERE { resource:Q650731 property:P641 ?u . ?u rdf:type ontology:Q349 }
Georgia women's national football team
action filter_type
action find
entity Georgia women's national football team
relation sport
type sport
["Georgia women's national football team", 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?u WHERE { resource:Georgia_women's_national_football_team property:sport ?u . ?u rdf:type ontology:sport }
[]
sport
Clarification for simple ques.
Q3073431
SYSTEM
Did you mean Poland Olympic football team ?
Q3073431 Q841563 Q650731
(Q3073431,P641,c(Q349)) (Q841563,P641,c(Q349)) (Q650731,P641,c(Q349))
[ANSWER]
['Q3073431', 'P641', {'concept': 'Q349'}] ['Q841563', 'P641', {'concept': 'Q349'}] ['Q650731', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?u WHERE { resource:Q650731 property:P641 ?u . ?u rdf:type ontology:Q349 }
Poland Olympic football team Netherlands women's national football team Georgia women's national football team
Did you mean Poland Olympic football team ?
Poland Olympic football team
['Poland Olympic football team', 'sport', {'concept': 'sport'}] ["Netherlands women's national football team", 'sport', {'concept': 'sport'}] ["Georgia women's national football team", 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?u WHERE { resource:Georgia_women's_national_football_team property:sport ?u . ?u rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
USER
No, I meant Georgia women's national football team. Could you tell me the answer for that?
(Q650731,P641,c(Q349))
Q650731
['Q650731', 'P641', {'concept': 'Q349'}]
["Georgia women's national football team", 'sport', {'concept': 'sport'}]
[]
Q606060
SYSTEM
women's association football
Q606060
(Q650731,P641,c(Q349))
action filter_type
action find
entity Q650731
relation P641
type Q349
That national association football team participated in [ANSWER]
['Q650731', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?u WHERE { resource:Q650731 property:P641 ?u . ?u rdf:type ontology:Q349 }
women's association football
That national association football team participated in women's association football
women's association football
action filter_type
action find
entity Georgia women's national football team
relation sport
type sport
["Georgia women's national football team", 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?u WHERE { resource:Georgia_women's_national_football_team property:sport ?u . ?u rdf:type ontology:sport }
[]