Simple Question (Direct)
Simple Question
Q4786756
P20
Q56061
USER
Which administrative territory is the place of death of Archie Mitchell ?
(Q4786756,P20,c(Q56061))
action filter_type
action find
entity Q4786756
relation P20
type Q56061
['Q4786756', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q4786756 property:P20 ?i . ?i rdf:type ontology:Q56061 }
Archie Mitchell
action filter_type
action find
entity Archie Mitchell
relation place of death
type administrative territorial entity
['Archie Mitchell', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Archie_Mitchell property:place_of_death ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q52998
SYSTEM
Richmond Hill
Q52998
(Q4786756,P20,c(Q56061))
action filter_type
action find
entity Q4786756
relation P20
type Q56061
[ANSWER]
['Q4786756', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { resource:Q4786756 property:P20 ?i . ?i rdf:type ontology:Q56061 }
Richmond Hill
Richmond Hill
action filter_type
action find
entity Archie Mitchell
relation place of death
type administrative territorial entity
['Archie Mitchell', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Archie_Mitchell property:place_of_death ?i . ?i rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4786756
P54
Q12973014
USER
Which sports team is that person a member of ?
(Q52998,P54,c(Q12973014))
action filter_type
action find
entity Q4786756
relation P54
type Q12973014
['Q52998', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?s WHERE { resource:Q4786756 property:P54 ?s . ?s rdf:type ontology:Q12973014 }
Archie Mitchell
action filter_type
action find
entity Archie Mitchell
relation member of sports team
type sports team
['Richmond Hill', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?s WHERE { resource:Archie_Mitchell property:member_of_sports_team ?s . ?s rdf:type ontology:sports_team }
[]
sports team
Q16852137
SYSTEM
The Football League XI
Q16852137
(Q52998,P54,c(Q12973014))
action filter_type
action find
entity Q4786756
relation P54
type Q12973014
[ANSWER]
['Q52998', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?s WHERE { resource:Q4786756 property:P54 ?s . ?s rdf:type ontology:Q12973014 }
The Football League XI
The Football League XI
action filter_type
action find
entity Archie Mitchell
relation member of sports team
type sports team
['Richmond Hill', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?s WHERE { resource:Archie_Mitchell property:member_of_sports_team ?s . ?s rdf:type ontology:sports_team }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2704945 Q4786756
P27
Q15617994
USER
Which administrative territories are the native countriesof Archie Mitchell or Yehoshua Feigenbaum ?
OR((Q4786756,P27,c(Q15617994)), (Q2704945,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q4786756
relation P27
action find
entity Q2704945
relation P27
type Q15617994
{'OR': [['Q4786756', 'P27', {'concept': 'Q15617994'}], ['Q2704945', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { VALUES ( ?u ) { ( resource:Q4786756 ) ( resource:Q2704945 ) } . ?u property:P27 ?o } . ?o rdf:type ontology:Q15617994 }
Yehoshua Feigenbaum Archie Mitchell
action filter_type
action union
action find
entity Archie Mitchell
relation country of citizenship
action find
entity Yehoshua Feigenbaum
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Archie Mitchell', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Yehoshua Feigenbaum', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { VALUES ( ?u ) { ( resource:Archie_Mitchell ) ( resource:Yehoshua_Feigenbaum ) } . ?u property:country_of_citizenship ?o } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q801 Q145
SYSTEM
Israel, United Kingdom
Q801 Q145
OR((Q4786756,P27,c(Q15617994)), (Q2704945,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q4786756
relation P27
action find
entity Q2704945
relation P27
type Q15617994
[ANSWERS]
{'OR': [['Q4786756', 'P27', {'concept': 'Q15617994'}], ['Q2704945', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { VALUES ( ?u ) { ( resource:Q4786756 ) ( resource:Q2704945 ) } . ?u property:P27 ?o } . ?o rdf:type ontology:Q15617994 }
Israel United Kingdom
Israel United Kingdom
action filter_type
action union
action find
entity Archie Mitchell
relation country of citizenship
action find
entity Yehoshua Feigenbaum
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Archie Mitchell', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Yehoshua Feigenbaum', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { VALUES ( ?u ) { ( resource:Archie_Mitchell ) ( resource:Yehoshua_Feigenbaum ) } . ?u property:country_of_citizenship ?o } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories have diplomatic relationships with exactly 1 administrative territory ?
(c(Q15617994),P530,c(Q1048835))
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 1
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?c ) AS ?m ) WHERE { ?g property:P530 ?c . ?g rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q15617994 } GROUP BY ?g } . FILTER ( ?m = 1 ) }
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?c ) AS ?m ) WHERE { ?g property:diplomatic_relation ?c . ?g rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?g } . FILTER ( ?m = 1 ) }
[]
political territorial entity designation for an administrative territorial entity
Q1000 Q769 Q778
SYSTEM
Gabon, Grenada, The Bahamas
Q1000 Q781 Q778 Q769
(c(Q15617994),P530,c(Q1048835))
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 1
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?c ) AS ?m ) WHERE { ?g property:P530 ?c . ?g rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q15617994 } GROUP BY ?g } . FILTER ( ?m = 1 ) }
Gabon Antigua and Barbuda The Bahamas Grenada
Gabon Grenada The Bahamas
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?c ) AS ?m ) WHERE { ?g property:diplomatic_relation ?c . ?g rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?g } . FILTER ( ?m = 1 ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q230
P530
Q15617994
USER
Are Georgia known to have diplomatic connections with those political territories ?
(Q230,P530,Q1000) (Q230,P530,Q769) (Q230,P530,Q778)
action is_in
entity prev_answer
action find
entity Q230
relation P530
['Q230', 'P530', 'Q1000'] ['Q230', 'P530', 'Q769'] ['Q230', 'P530', 'Q778']
ASK WHERE { resource:Q230 property:P530 ?n . VALUES ( ?n ) { ( resource:Q1000 ) ( resource:Q781 ) ( resource:Q778 ) } }
Georgia
action is_in
entity prev_answer
action find
entity Georgia
relation diplomatic relation
['Georgia', 'diplomatic relation', 'Gabon'] ['Georgia', 'diplomatic relation', 'Grenada'] ['Georgia', 'diplomatic relation', 'The Bahamas']
ASK WHERE { resource:Georgia property:diplomatic_relation ?n . VALUES ( ?n ) { ( resource:Gabon ) ( resource:Antigua_and_Barbuda ) ( resource:The_Bahamas ) } }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q230,P530,Q1000) (Q230,P530,Q769) (Q230,P530,Q778)
action is_in
entity prev_answer
action find
entity Q230
relation P530
[ANSWER]
['Q230', 'P530', 'Q1000'] ['Q230', 'P530', 'Q769'] ['Q230', 'P530', 'Q778']
ASK WHERE { resource:Q230 property:P530 ?n . VALUES ( ?n ) { ( resource:Q1000 ) ( resource:Q781 ) ( resource:Q778 ) } }
Yes
action is_in
entity prev_answer
action find
entity Georgia
relation diplomatic relation
['Georgia', 'diplomatic relation', 'Gabon'] ['Georgia', 'diplomatic relation', 'Grenada'] ['Georgia', 'diplomatic relation', 'The Bahamas']
ASK WHERE { resource:Georgia property:diplomatic_relation ?n . VALUES ( ?n ) { ( resource:Gabon ) ( resource:Antigua_and_Barbuda ) ( resource:The_Bahamas ) } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q1048835
USER
Which political territories have a diplomatic relationship with atleast 1 political territory ?
(c(Q1048835),P530,c(Q1048835))
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 1
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?b WHERE { FILTER ( ?q >= 1 ) . { SELECT DISTINCT ?b ( COUNT ( ?o ) AS ?q ) WHERE { ?b property:P530 ?o . ?b rdf:type ontology:Q1048835 . ?o rdf:type ontology:Q1048835 } GROUP BY ?b } }
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 1
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?b WHERE { FILTER ( ?q >= 1 ) . { SELECT DISTINCT ?b ( COUNT ( ?o ) AS ?q ) WHERE { ?b property:diplomatic_relation ?o . ?b rdf:type ontology:political_territorial_entity . ?o rdf:type ontology:political_territorial_entity } GROUP BY ?b } }
[]
political territorial entity political territorial entity
Q183 Q408 Q35
SYSTEM
Germany, Australia, Denmark
Q1000 Q40 Q781 Q778 Q183 Q408 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q1048835))
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 1
[ANSWERS]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?b WHERE { FILTER ( ?q >= 1 ) . { SELECT DISTINCT ?b ( COUNT ( ?o ) AS ?q ) WHERE { ?b property:P530 ?o . ?b rdf:type ontology:Q1048835 . ?o rdf:type ontology:Q1048835 } GROUP BY ?b } }
Gabon Austria Antigua and Barbuda The Bahamas Germany Australia Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Germany Australia Denmark
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 1
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?b WHERE { FILTER ( ?q >= 1 ) . { SELECT DISTINCT ?b ( COUNT ( ?o ) AS ?q ) WHERE { ?b property:diplomatic_relation ?o . ?b rdf:type ontology:political_territorial_entity . ?o rdf:type ontology:political_territorial_entity } GROUP BY ?b } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q47036
P530
Q15617994
USER
Do Crespano del Grappa have ambassadorial relations with those political territories ?
(Q47036,P530,Q183) (Q47036,P530,Q408) (Q47036,P530,Q35)
action is_in
entity prev_answer
action find
entity Q47036
relation P530
['Q47036', 'P530', 'Q183'] ['Q47036', 'P530', 'Q408'] ['Q47036', 'P530', 'Q35']
ASK WHERE { VALUES ( ?g ) { ( resource:Q1000 ) ( resource:Q40 ) ( resource:Q781 ) } . resource:Q47036 property:P530 ?g }
Crespano del Grappa
action is_in
entity prev_answer
action find
entity Crespano del Grappa
relation diplomatic relation
['Crespano del Grappa', 'diplomatic relation', 'Germany'] ['Crespano del Grappa', 'diplomatic relation', 'Australia'] ['Crespano del Grappa', 'diplomatic relation', 'Denmark']
ASK WHERE { VALUES ( ?g ) { ( resource:Gabon ) ( resource:Austria ) ( resource:Antigua_and_Barbuda ) } . resource:Crespano_del_Grappa property:diplomatic_relation ?g }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q47036,P530,Q183) (Q47036,P530,Q408) (Q47036,P530,Q35)
action is_in
entity prev_answer
action find
entity Q47036
relation P530
[ANSWER]
['Q47036', 'P530', 'Q183'] ['Q47036', 'P530', 'Q408'] ['Q47036', 'P530', 'Q35']
ASK WHERE { VALUES ( ?g ) { ( resource:Q1000 ) ( resource:Q40 ) ( resource:Q781 ) } . resource:Q47036 property:P530 ?g }
No
action is_in
entity prev_answer
action find
entity Crespano del Grappa
relation diplomatic relation
['Crespano del Grappa', 'diplomatic relation', 'Germany'] ['Crespano del Grappa', 'diplomatic relation', 'Australia'] ['Crespano del Grappa', 'diplomatic relation', 'Denmark']
ASK WHERE { VALUES ( ?g ) { ( resource:Gabon ) ( resource:Austria ) ( resource:Antigua_and_Barbuda ) } . resource:Crespano_del_Grappa property:diplomatic_relation ?g }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q4765728 Q4786756
P27
Q15617994
USER
Which administrative territories are Archie Mitchell or Anjali Bhagwat an inhabitant of ?
OR((Q4786756,P27,c(Q15617994)), (Q4765728,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q4786756
relation P27
action find
entity Q4765728
relation P27
type Q15617994
{'OR': [['Q4786756', 'P27', {'concept': 'Q15617994'}], ['Q4765728', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q4786756 property:P27 ?u } UNION { resource:Q4765728 property:P27 ?u } } . ?u rdf:type ontology:Q15617994 }
Anjali Bhagwat Archie Mitchell
action filter_type
action union
action find
entity Archie Mitchell
relation country of citizenship
action find
entity Anjali Bhagwat
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Archie Mitchell', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Anjali Bhagwat', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Archie_Mitchell property:country_of_citizenship ?u } UNION { resource:Anjali_Bhagwat property:country_of_citizenship ?u } } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145 Q668
SYSTEM
United Kingdom, India
Q145 Q668
OR((Q4786756,P27,c(Q15617994)), (Q4765728,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q4786756
relation P27
action find
entity Q4765728
relation P27
type Q15617994
[ANSWERS]
{'OR': [['Q4786756', 'P27', {'concept': 'Q15617994'}], ['Q4765728', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q4786756 property:P27 ?u } UNION { resource:Q4765728 property:P27 ?u } } . ?u rdf:type ontology:Q15617994 }
United Kingdom India
United Kingdom India
action filter_type
action union
action find
entity Archie Mitchell
relation country of citizenship
action find
entity Anjali Bhagwat
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Archie Mitchell', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Anjali Bhagwat', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Archie_Mitchell property:country_of_citizenship ?u } UNION { resource:Anjali_Bhagwat property:country_of_citizenship ?u } } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2697202 Q16852137
P17
Q15617994
USER
Which administrative territories are The Football League XI or Pampas District located in ?
OR((Q16852137,P17,c(Q15617994)), (Q2697202,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q16852137
relation P17
action find
entity Q2697202
relation P17
type Q15617994
{'OR': [['Q16852137', 'P17', {'concept': 'Q15617994'}], ['Q2697202', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q16852137 property:P17 ?b } UNION { resource:Q2697202 property:P17 ?b } } . ?b rdf:type ontology:Q15617994 }
Pampas District The Football League XI
action filter_type
action union
action find
entity The Football League XI
relation country
action find
entity Pampas District
relation country
type designation for an administrative territorial entity
{'OR': [['The Football League XI', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Pampas District', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:The_Football_League_XI property:country ?b } UNION { resource:Pampas_District property:country ?b } } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q419 Q145
SYSTEM
Peru, United Kingdom
Q419 Q145
OR((Q16852137,P17,c(Q15617994)), (Q2697202,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q16852137
relation P17
action find
entity Q2697202
relation P17
type Q15617994
[ANSWERS]
{'OR': [['Q16852137', 'P17', {'concept': 'Q15617994'}], ['Q2697202', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q16852137 property:P17 ?b } UNION { resource:Q2697202 property:P17 ?b } } . ?b rdf:type ontology:Q15617994 }
Peru United Kingdom
Peru United Kingdom
action filter_type
action union
action find
entity The Football League XI
relation country
action find
entity Pampas District
relation country
type designation for an administrative territorial entity
{'OR': [['The Football League XI', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Pampas District', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:The_Football_League_XI property:country ?b } UNION { resource:Pampas_District property:country ?b } } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories are known to have diplomatic connections with around 71 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 71
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?e ) AS ?r ) WHERE { ?m property:P530 ?e . ?m rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q15617994 } GROUP BY ?m } . FILTER ( ?r = 71 ) }
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 71
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?e ) AS ?r ) WHERE { ?m property:diplomatic_relation ?e . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } . FILTER ( ?r = 71 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q230
SYSTEM
Italy, Georgia
Q38 Q230
(c(Q15617994),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 71
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?e ) AS ?r ) WHERE { ?m property:P530 ?e . ?m rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q15617994 } GROUP BY ?m } . FILTER ( ?r = 71 ) }
Italy Georgia
Italy Georgia
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 71
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?e ) AS ?r ) WHERE { ?m property:diplomatic_relation ?e . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } . FILTER ( ?r = 71 ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1039833 Q183
P530 P20
Q15617994
USER
Which administrative territories have a diplomatic relationship with Germany or did Karl Muhsal expire ?
OR((Q183,P530,c(Q15617994)), (Q1039833,P20,c(Q15617994)))
action filter_type
action union
action find
entity Q183
relation P530
action find
entity Q1039833
relation P20
type Q15617994
{'OR': [['Q183', 'P530', {'concept': 'Q15617994'}], ['Q1039833', 'P20', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q15617994 . { { resource:Q183 property:P530 ?x } UNION { resource:Q1039833 property:P20 ?x } } }
Karl Muhsal Germany
action filter_type
action union
action find
entity Germany
relation diplomatic relation
action find
entity Karl Muhsal
relation place of death
type designation for an administrative territorial entity
{'OR': [['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Karl Muhsal', 'place of death', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Germany property:diplomatic_relation ?x } UNION { resource:Karl_Muhsal property:place_of_death ?x } } }
[]
designation for an administrative territorial entity
Q39 Q218 Q347 Q796 Q657 Q148 Q117 Q213 Q31 Q214
SYSTEM
Some of them are Switzerland, Romania, Liechtenstein, Iraq, Chad, People's Republic of China, Ghana, Czech Republic, Belgium, Slovakia
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 Q5542 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)), (Q1039833,P20,c(Q15617994)))
action filter_type
action union
action find
entity Q183
relation P530
action find
entity Q1039833
relation P20
type Q15617994
[ANSWERS]
{'OR': [['Q183', 'P530', {'concept': 'Q15617994'}], ['Q1039833', 'P20', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q15617994 . { { resource:Q183 property:P530 ?x } UNION { resource:Q1039833 property:P20 ?x } } }
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 Plettenberg 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
Switzerland Romania Liechtenstein Iraq Chad People's Republic of China Ghana Czech Republic Belgium Slovakia
action filter_type
action union
action find
entity Germany
relation diplomatic relation
action find
entity Karl Muhsal
relation place of death
type designation for an administrative territorial entity
{'OR': [['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Karl Muhsal', 'place of death', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Germany property:diplomatic_relation ?x } UNION { resource:Karl_Muhsal property:place_of_death ?x } } }
[]
Clarification
Comparative|More/Less|Mult. entity type|Indirect
P495
Q15617994 Q838948 Q15416
USER
Which administrative territories are the countries of origin of less number of works of art and television programs than that administrative territory ?
(c(Q838948)|c(Q15416),P495,c(Q15617994))
[[{'concept': 'Q838948'}, {'concept': 'Q15416'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { VALUES ( ?s ) { ( ?z ) ( ?x ) } . ?s property:P495 ?y } . ?z rdf:type ontology:Q838948 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q15416 }
[[{'concept': 'work of art'}, {'concept': 'television program'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { VALUES ( ?s ) { ( ?z ) ( ?x ) } . ?s property:country_of_origin ?y } . ?z rdf:type ontology:work_of_art . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:television_program }
[]
designation for an administrative territorial entity work of art television program
Comparative|More/Less|Mult. entity type|Clarification
Q214
SYSTEM
Did you mean Slovakia ?
(c(Q838948)|c(Q15416),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q15416'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { VALUES ( ?s ) { ( ?z ) ( ?x ) } . ?s property:P495 ?y } . ?z rdf:type ontology:Q838948 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q15416 }
Did you mean Slovakia ?
Slovakia
[[{'concept': 'work of art'}, {'concept': 'television program'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { VALUES ( ?s ) { ( ?z ) ( ?x ) } . ?s property:country_of_origin ?y } . ?z rdf:type ontology:work_of_art . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:television_program }
[]
Comparative Reasoning (All)
USER
No, I meant Ghana. Could you tell me the answer for that?
(c(Q838948)|c(Q15416),P495,c(Q15617994))
Q117
[[{'concept': 'Q838948'}, {'concept': 'Q15416'}], 'P495', {'concept': 'Q15617994'}]
[[{'concept': 'work of art'}, {'concept': 'television program'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
Q953 Q184 Q347
SYSTEM
Zambia, Belarus, Liechtenstein
Q805 Q804 Q800 Q1462 Q12536 Q783 Q265 Q36678 Q712 Q711 Q1460 Q398 Q657 Q792 Q790 Q4628 Q796 Q954 Q958 Q986 Q826 Q242 Q244 Q811 Q153136 Q924 Q983 Q851 Q733 Q29999 Q819 Q730 Q1013 Q159626 Q236 Q233 Q238 Q1045 Q1044 Q921 Q1049 Q1025 Q1027 Q1020 Q184 Q1029 Q227 Q223 Q221 Q229 Q347 Q1036 Q1037 Q1032 Q1030 Q967 Q962 Q963 Q115 Q754 Q217 Q917 Q916 Q1007 Q1006 Q1005 Q1009 Q1008 Q971 Q970 Q239502 Q686 Q574 Q874 Q774 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q1011 Q945 Q672 Q176 Q863 Q953
(c(Q838948)|c(Q15416),P495,c(Q15617994))
[ANSWERS]
[[{'concept': 'Q838948'}, {'concept': 'Q15416'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q838948 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q15416 }
Yemen Panama Costa Rica Sardinia Abbasid caliphate Honduras Uzbekistan West Bank Fiji Mongolia Sicily Bahrain Chad El Salvador Haiti Faroe Islands Iraq Zimbabwe South Sudan Eritrea Maldives Belize Barbados Nicaragua Habsburg Empire Tanzania Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Laos Suriname Lesotho Württemberg Montenegro Malta San Marino Somalia Sierra Leone Brunei Sudan Mauritania Mauritius Malawi Belarus Mozambique Azerbaijan Greenland Republic of Macedonia Cyprus Liechtenstein Uganda Rwanda Niger Namibia Burundi Benin Botswana Ethiopia Trinidad and Tobago Republic of Moldova Bhutan Angola Guinea-Bissau Guinea Gambia Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Vanuatu East Timor Turkmenistan Guatemala Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Cape Verde Togo Tuvalu Quebec Tajikistan Zambia
Zambia Belarus Liechtenstein
[[{'concept': 'work of art'}, {'concept': 'television program'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:work_of_art . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:television_program }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q953 Q184 Q347
P463
Q484652
USER
What were Zambia, Belarus and Liechtenstein a member of ?
(Q953,P463,c(Q484652)) (Q184,P463,c(Q484652)) (Q347,P463,c(Q484652))
action union
action filter_type
action find
entity Q953
relation P463
type Q484652
action filter_type
action find
entity Q184
relation P463
type Q484652
action filter_type
action find
entity Q347
relation P463
type Q484652
['Q953', 'P463', {'concept': 'Q484652'}] ['Q184', 'P463', {'concept': 'Q484652'}] ['Q347', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ?z WHERE { { resource:Q953 property:P463 ?z . ?z rdf:type ontology:Q484652 } UNION { resource:Q184 property:P463 ?z . ?z rdf:type ontology:Q484652 } }
Zambia Belarus Liechtenstein
action union
action filter_type
action find
entity Zambia
relation member of
type international organization
action filter_type
action find
entity Belarus
relation member of
type international organization
action filter_type
action find
entity Liechtenstein
relation member of
type international organization
['Zambia', 'member of', {'concept': 'international organization'}] ['Belarus', 'member of', {'concept': 'international organization'}] ['Liechtenstein', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ?z WHERE { { resource:Zambia property:member_of ?z . ?z rdf:type ontology:international_organization } UNION { resource:Belarus property:member_of ?z . ?z rdf:type ontology:international_organization } }
[]
international organization
Q81299 Q81299 Q1065
SYSTEM
Organization for Security and Co-operation in Europe for 1st, 2nd, United Nations for 3rd
Q1065 Q47488 Q472311 Q8475 Q7785 Q7804 Q54129 Q294278 Q1043527 Q81299 Q1065 Q1043527 Q166110 Q81299 Q8475 Q17495 Q1065 Q182000 Q778126 Q166546 Q47488 Q842490 Q1045198
(Q953,P463,c(Q484652)) (Q184,P463,c(Q484652)) (Q347,P463,c(Q484652))
action union
action filter_type
action find
entity Q953
relation P463
type Q484652
action filter_type
action find
entity Q184
relation P463
type Q484652
action filter_type
action find
entity Q347
relation P463
type Q484652
[ANSWERS]
['Q953', 'P463', {'concept': 'Q484652'}] ['Q184', 'P463', {'concept': 'Q484652'}] ['Q347', 'P463', {'concept': 'Q484652'}]
SELECT DISTINCT ?z WHERE { { resource:Q953 property:P463 ?z . ?z rdf:type ontology:Q484652 } UNION { resource:Q184 property:P463 ?z . ?z rdf:type ontology:Q484652 } }
United Nations International Criminal Court International Organization for Migration Interpol Commonwealth of Nations International Monetary Fund International Labour Organization African, Caribbean and Pacific Group of States Multilateral Investment Guarantee Agency Organization for Security and Co-operation in Europe United Nations Multilateral Investment Guarantee Agency Union State Organization for Security and Co-operation in Europe Interpol Universal Postal Union United Nations United Nations Conference on Trade and Development Intelsat European Free Trade Association International Criminal Court Organisation for the Prohibition of Chemical Weapons Permanent Court of Arbitration
Organization for Security and Co-operation in Europe Organization for Security and Co-operation in Europe United Nations
action union
action filter_type
action find
entity Zambia
relation member of
type international organization
action filter_type
action find
entity Belarus
relation member of
type international organization
action filter_type
action find
entity Liechtenstein
relation member of
type international organization
['Zambia', 'member of', {'concept': 'international organization'}] ['Belarus', 'member of', {'concept': 'international organization'}] ['Liechtenstein', 'member of', {'concept': 'international organization'}]
SELECT DISTINCT ?z WHERE { { resource:Zambia property:member_of ?z . ?z rdf:type ontology:international_organization } UNION { resource:Belarus property:member_of ?z . ?z rdf:type ontology:international_organization } }
[]