Simple Question (Direct)
Simple Question
Q7070780
P140
Q13414953
USER
Which religious denomination does Nyack College correspond to ?
(Q7070780,P140,c(Q13414953))
action filter_type
action find
entity Q7070780
relation P140
type Q13414953
['Q7070780', 'P140', {'concept': 'Q13414953'}]
SELECT DISTINCT ?z WHERE { resource:Q7070780 property:P140 ?z . ?z rdf:type ontology:Q13414953 }
Nyack College
action filter_type
action find
entity Nyack College
relation religion
type religious denomination
['Nyack College', 'religion', {'concept': 'religious denomination'}]
SELECT DISTINCT ?z WHERE { resource:Nyack_College property:religion ?z . ?z rdf:type ontology:religious_denomination }
[]
religious denomination
Q2272897
SYSTEM
Christian and Missionary Alliance
Q2272897
(Q7070780,P140,c(Q13414953))
action filter_type
action find
entity Q7070780
relation P140
type Q13414953
Nyack College corresponds à [ANSWER]
['Q7070780', 'P140', {'concept': 'Q13414953'}]
SELECT DISTINCT ?z WHERE { resource:Q7070780 property:P140 ?z . ?z rdf:type ontology:Q13414953 }
Christian and Missionary Alliance
Nyack College corresponds à Christian and Missionary Alliance
Christian and Missionary Alliance
action filter_type
action find
entity Nyack College
relation religion
type religious denomination
['Nyack College', 'religion', {'concept': 'religious denomination'}]
SELECT DISTINCT ?z WHERE { resource:Nyack_College property:religion ?z . ?z rdf:type ontology:religious_denomination }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7070780
P69
Q502895
USER
Who was a student at that nonprofit organization ?
(c(Q502895),P69,Q2272897)
action filter_type
action find_reverse
entity Q7070780
relation P69
type Q502895
[{'concept': 'Q502895'}, 'P69', 'Q2272897']
SELECT DISTINCT ?f WHERE { ?f property:P69 resource:Q7070780 . ?f rdf:type ontology:Q502895 }
Nyack College
action filter_type
action find_reverse
entity Nyack College
relation educated at
type common name
[{'concept': 'common name'}, 'educated at', 'Christian and Missionary Alliance']
SELECT DISTINCT ?f WHERE { ?f property:educated_at resource:Nyack_College . ?f rdf:type ontology:common_name }
[]
common name
Q5200047
SYSTEM
Cynthia Davis
Q5200047
(c(Q502895),P69,Q2272897)
action filter_type
action find_reverse
entity Q7070780
relation P69
type Q502895
[ANSWER] was a student at that nonprofit organization
[{'concept': 'Q502895'}, 'P69', 'Q2272897']
SELECT DISTINCT ?f WHERE { ?f property:P69 resource:Q7070780 . ?f rdf:type ontology:Q502895 }
Cynthia Davis
Cynthia Davis was a student at that nonprofit organization
Cynthia Davis
action filter_type
action find_reverse
entity Nyack College
relation educated at
type common name
[{'concept': 'common name'}, 'educated at', 'Christian and Missionary Alliance']
SELECT DISTINCT ?f WHERE { ?f property:educated_at resource:Nyack_College . ?f rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q7070780 Q15311839
P140
Q874405
USER
How many social groups are the religious affiliation of Nyack College or Anti-balaka ?
(Q7070780,P140,c(Q874405)) (Q15311839,P140,c(Q874405))
action count
action union
action filter_type
action find
entity Q7070780
relation P140
type Q874405
action filter_type
action find
entity Q15311839
relation P140
type Q874405
['Q7070780', 'P140', {'concept': 'Q874405'}] ['Q15311839', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?w ) WHERE { { resource:Q7070780 property:P140 ?n . ?n rdf:type ontology:Q874405 } UNION { resource:Q15311839 property:P140 ?n . ?n rdf:type ontology:Q874405 } }
Nyack College Anti-balaka
action count
action union
action filter_type
action find
entity Nyack College
relation religion
type social group
action filter_type
action find
entity Anti-balaka
relation religion
type social group
['Nyack College', 'religion', {'concept': 'social group'}] ['Anti-balaka', 'religion', {'concept': 'social group'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?w ) WHERE { { resource:Nyack_College property:religion ?n . ?n rdf:type ontology:social_group } UNION { resource:Anti-balaka property:religion ?n . ?n rdf:type ontology:social_group } }
[]
social group
SYSTEM
2
Q5043 Q43004
(Q7070780,P140,c(Q874405)) (Q15311839,P140,c(Q874405))
action count
action union
action filter_type
action find
entity Q7070780
relation P140
type Q874405
action filter_type
action find
entity Q15311839
relation P140
type Q874405
[ANSWER]
['Q7070780', 'P140', {'concept': 'Q874405'}] ['Q15311839', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?w ) WHERE { { resource:Q7070780 property:P140 ?n . ?n rdf:type ontology:Q874405 } UNION { resource:Q15311839 property:P140 ?n . ?n rdf:type ontology:Q874405 } }
Christianity animism
2
action count
action union
action filter_type
action find
entity Nyack College
relation religion
type social group
action filter_type
action find
entity Anti-balaka
relation religion
type social group
['Nyack College', 'religion', {'concept': 'social group'}] ['Anti-balaka', 'religion', {'concept': 'social group'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?w ) WHERE { { resource:Nyack_College property:religion ?n . ?n rdf:type ontology:social_group } UNION { resource:Anti-balaka property:religion ?n . ?n rdf:type ontology:social_group } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7070780
P17
Q15617994
USER
Which administrative territory does that nonprofit organization belong to ?
action filter_type
action find
entity Q7070780
relation P17
type Q15617994
SELECT DISTINCT ?u WHERE { resource:Q7070780 property:P17 ?u . ?u rdf:type ontology:Q15617994 }
Nyack College
action filter_type
action find
entity Nyack College
relation country
type designation for an administrative territorial entity
SELECT DISTINCT ?u WHERE { resource:Nyack_College property:country ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
action filter_type
action find
entity Q7070780
relation P17
type Q15617994
That nonprofit organization belongs to the [ANSWER]
SELECT DISTINCT ?u WHERE { resource:Q7070780 property:P17 ?u . ?u rdf:type ontology:Q15617994 }
United States of America
That nonprofit organization belongs to the United States of America
United States of America
action filter_type
action find
entity Nyack College
relation country
type designation for an administrative territorial entity
SELECT DISTINCT ?u WHERE { resource:Nyack_College property:country ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q796
P530
Q15617994 Q15617994
USER
Which administrative territories are known to have diplomatic connections with greater number of administrative territories than Iraq ?
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q796
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?p ) AS ?b ) WHERE { ?s rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q15617994 . ?s property:P530 ?p } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?f ) WHERE { resource:Q796 property:P530 ?l . ?l rdf:type ontology:Q15617994 } } . FILTER ( ?b > ?f ) }
Iraq
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Iraq
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?p ) AS ?b ) WHERE { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s property:diplomatic_relation ?p } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?f ) WHERE { resource:Iraq property:diplomatic_relation ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?b > ?f ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q805 Q668 Q142 Q145 Q148 Q711 Q403 Q159 Q43 Q155 Q884 Q30 Q929 Q38 Q230 Q184 Q225 Q347 Q17 Q114 Q212 Q858 Q1011 Q953
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q796
relation P530
type Q15617994
[ANSWERS] are known to have diplomatic connections with greater number of administrative territories than Iraq
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?p ) AS ?b ) WHERE { ?s rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q15617994 . ?s property:P530 ?p } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?f ) WHERE { resource:Q796 property:P530 ?l . ?l rdf:type ontology:Q15617994 } } . FILTER ( ?b > ?f ) }
Israel Yemen India France United Kingdom People's Republic of China Mongolia Serbia Russia Turkey Brazil South Korea United States of America Central African Republic Italy Georgia Belarus Bosnia and Herzegovina Liechtenstein Japan Kenya Ukraine Syria Cape Verde Zambia
Italy, Brazil and United States of America are known to have diplomatic connections with greater number of administrative territories than Iraq
Italy Brazil United States of America
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Iraq
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?p ) AS ?b ) WHERE { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s property:diplomatic_relation ?p } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?f ) WHERE { resource:Iraq property:diplomatic_relation ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?b > ?f ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q10262013 Q155
P530 P27
Q15617994
USER
Which administrative territories have diplomatic relationships with Brazil and are Crystal Gold an inhabitant of ?
AND((Q155,P530,c(Q15617994)), (Q10262013,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q155
relation P530
action find
entity Q10262013
relation P27
type Q15617994
{'AND': [['Q155', 'P530', {'concept': 'Q15617994'}], ['Q10262013', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { resource:Q155 property:P530 ?j . resource:Q10262013 property:P27 ?j . ?j rdf:type ontology:Q15617994 }
Crystal Gold Brazil
action filter_type
action intersection
action find
entity Brazil
relation diplomatic relation
action find
entity Crystal Gold
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Brazil', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Crystal Gold', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { resource:Brazil property:diplomatic_relation ?j . resource:Crystal_Gold property:country_of_citizenship ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
AND((Q155,P530,c(Q15617994)), (Q10262013,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q155
relation P530
action find
entity Q10262013
relation P27
type Q15617994
[ANSWER] have diplomatic relationships with Brazil and are Crystal Gold an inhabitant of
{'AND': [['Q155', 'P530', {'concept': 'Q15617994'}], ['Q10262013', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { resource:Q155 property:P530 ?j . resource:Q10262013 property:P27 ?j . ?j rdf:type ontology:Q15617994 }
United States of America
United States of America have diplomatic relationships with Brazil and are Crystal Gold an inhabitant of
United States of America
action filter_type
action intersection
action find
entity Brazil
relation diplomatic relation
action find
entity Crystal Gold
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Brazil', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Crystal Gold', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { resource:Brazil property:diplomatic_relation ?j . resource:Crystal_Gold property:country_of_citizenship ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q10262013
P21
Q290
USER
Which sex does that person possess ?
(Q30,P21,c(Q290))
action filter_type
action find
entity Q10262013
relation P21
type Q290
['Q30', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q290 . resource:Q10262013 property:P21 ?r }
Crystal Gold
action filter_type
action find
entity Crystal Gold
relation gender
type sex
['United States of America', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:sex . resource:Crystal_Gold property:gender ?r }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q30,P21,c(Q290))
action filter_type
action find
entity Q10262013
relation P21
type Q290
That person possesses the [ANSWER]
['Q30', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q290 . resource:Q10262013 property:P21 ?r }
female
That person possesses the female
female
action filter_type
action find
entity Crystal Gold
relation gender
type sex
['United States of America', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:sex . resource:Crystal_Gold property:gender ?r }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P206
Q15324 Q355304 Q15617994
USER
How many administrative territories are located in the neighbourhood of approximately 12 bodies of water and watercourses ?
(c(Q15617994),P206,c(Q15324)|c(Q355304))
action count
action approx
action union
action find_tuple_counts
relation P206
type Q15617994
type Q15324
action find_tuple_counts
relation P206
type Q15617994
type Q355304
value 12
[{'concept': 'Q15617994'}, 'P206', [{'concept': 'Q15324'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) ?w WHERE { { ?w property:P206 ?a . ?w rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q15324 } UNION { ?w property:P206 ?a . ?w rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q355304 } } GROUP BY ?w } . FILTER ( ?p = 12 ) }
action count
action approx
action union
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type body of water
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type watercourse
value 12
[{'concept': 'designation for an administrative territorial entity'}, 'located next to body of water', [{'concept': 'body of water'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) ?w WHERE { { ?w property:located_next_to_body_of_water ?a . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:body_of_water } UNION { ?w property:located_next_to_body_of_water ?a . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:watercourse } } GROUP BY ?w } . FILTER ( ?p = 12 ) }
[]
body of water watercourse designation for an administrative territorial entity
SYSTEM
1
Q36
(c(Q15617994),P206,c(Q15324)|c(Q355304))
action count
action approx
action union
action find_tuple_counts
relation P206
type Q15617994
type Q15324
action find_tuple_counts
relation P206
type Q15617994
type Q355304
value 12
[ANSWER]
[{'concept': 'Q15617994'}, 'P206', [{'concept': 'Q15324'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) ?w WHERE { { ?w property:P206 ?a . ?w rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q15324 } UNION { ?w property:P206 ?a . ?w rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q355304 } } GROUP BY ?w } . FILTER ( ?p = 12 ) }
Poland
1
action count
action approx
action union
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type body of water
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type watercourse
value 12
[{'concept': 'designation for an administrative territorial entity'}, 'located next to body of water', [{'concept': 'body of water'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?p ) ?w WHERE { { ?w property:located_next_to_body_of_water ?a . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:body_of_water } UNION { ?w property:located_next_to_body_of_water ?a . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:watercourse } } GROUP BY ?w } . FILTER ( ?p = 12 ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q227
P495
Q15617994 Q15416 Q2342494
USER
How many administrative territories are the origins of approximately the same number of television programs and collectables as Azerbaijan ?
(c(Q15416)|c(Q2342494),P495,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q227
relation P495
type Q15416
type Q2342494
[[{'concept': 'Q15416'}, {'concept': 'Q2342494'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?k ) ?o WHERE { VALUES ( ?b ) { ( ontology:Q2342494 ) ( ontology:Q15416 ) } . ?t rdf:type ?b } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?f ) WHERE { ?z property:P495 resource:Q227 . { { ?z rdf:type ontology:Q15416 } UNION { ?z rdf:type ontology:Q2342494 } } } } . FILTER ( ?k = ?f ) }
Azerbaijan
action count
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type television program
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type collectable
action count
action filter_multi_types
action find_reverse
entity Azerbaijan
relation country of origin
type television program
type collectable
[[{'concept': 'television program'}, {'concept': 'collectable'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?k ) ?o WHERE { VALUES ( ?b ) { ( ontology:collectable ) ( ontology:television_program ) } . ?t rdf:type ?b } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?f ) WHERE { ?z property:country_of_origin resource:Azerbaijan . { { ?z rdf:type ontology:television_program } UNION { ?z rdf:type ontology:collectable } } } } . FILTER ( ?k = ?f ) }
[]
designation for an administrative territorial entity television program collectable
SYSTEM
167
Q805 Q804 Q801 Q800 Q1462 Q419 Q668 Q414 Q142 Q55 Q12536 Q262 Q148 Q783 Q265 Q37 Q36678 Q712 Q711 Q717 Q837 Q252 Q1460 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q4628 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q826 Q822 Q241 Q242 Q244 Q811 Q153136 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q819 Q424 Q730 Q1013 Q159626 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1044 Q1041 Q27 Q28 Q921 Q1049 Q1025 Q1027 Q1020 Q189 Q843 Q184 Q1029 Q1028 Q736 Q786 Q227 Q225 Q224 Q223 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q1009 Q1008 Q971 Q970 Q239502 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q1011 Q945 Q29 Q672 Q176 Q863 Q869 Q953
(c(Q15416)|c(Q2342494),P495,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q227
relation P495
type Q15416
type Q2342494
[ANSWER]
[[{'concept': 'Q15416'}, {'concept': 'Q2342494'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?k ) ?o WHERE { VALUES ( ?b ) { ( ontology:Q2342494 ) ( ontology:Q15416 ) } . ?t rdf:type ?b } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?f ) WHERE { ?z property:P495 resource:Q227 . { { ?z rdf:type ontology:Q15416 } UNION { ?z rdf:type ontology:Q2342494 } } } } . FILTER ( ?k = ?f ) }
Yemen Panama Israel Costa Rica Sardinia Peru India Argentina France Netherlands Abbasid caliphate Algeria People's Republic of China Honduras Uzbekistan Lithuania West Bank Fiji Mongolia Venezuela Nepal Indonesia Sicily Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Faroe Islands Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Maldives Lebanon Cuba Belize Barbados Nicaragua Habsburg Empire Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Württemberg Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Sierra Leone Senegal Ireland Hungary Brunei Sudan Mauritania Mauritius Malawi Iceland Pakistan Belarus Mozambique Morocco Ecuador Dominican Republic Azerbaijan Bosnia and Herzegovina Croatia Greenland 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 Chile 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 Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Cape Verde Togo Spain Tuvalu Quebec Tajikistan Thailand Zambia
167
action count
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type television program
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type collectable
action count
action filter_multi_types
action find_reverse
entity Azerbaijan
relation country of origin
type television program
type collectable
[[{'concept': 'television program'}, {'concept': 'collectable'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?k ) ?o WHERE { VALUES ( ?b ) { ( ontology:collectable ) ( ontology:television_program ) } . ?t rdf:type ?b } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?f ) WHERE { ?z property:country_of_origin resource:Azerbaijan . { { ?z rdf:type ontology:television_program } UNION { ?z rdf:type ontology:collectable } } } } . FILTER ( ?k = ?f ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q917
P495
Q15617994 Q15416 Q2342494
USER
And also tell me about Bhutan?
(c(Q15416)|c(Q2342494),P495,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q917
relation P495
type Q15416
type Q2342494
[[{'concept': 'Q15416'}, {'concept': 'Q2342494'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) ?a WHERE { { ?s property:P495 ?a . ?a rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q15416 } UNION { ?s property:P495 ?a . ?s rdf:type ontology:Q2342494 . ?a rdf:type ontology:Q15617994 } } GROUP BY ?a } . FILTER ( ?r = ?q ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?q ) WHERE { { { ?k rdf:type ontology:Q15416 } UNION { ?k rdf:type ontology:Q2342494 } } . ?k property:P495 resource:Q917 } } }
Bhutan
action count
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type television program
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type collectable
action count
action filter_multi_types
action find_reverse
entity Bhutan
relation country of origin
type television program
type collectable
[[{'concept': 'television program'}, {'concept': 'collectable'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) ?a WHERE { { ?s property:country_of_origin ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:television_program } UNION { ?s property:country_of_origin ?a . ?s rdf:type ontology:collectable . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?a } . FILTER ( ?r = ?q ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?q ) WHERE { { { ?k rdf:type ontology:television_program } UNION { ?k rdf:type ontology:collectable } } . ?k property:country_of_origin resource:Bhutan } } }
[]
designation for an administrative territorial entity television program collectable
SYSTEM
167
Q805 Q804 Q801 Q800 Q1462 Q419 Q668 Q414 Q142 Q55 Q12536 Q262 Q148 Q783 Q265 Q37 Q36678 Q712 Q711 Q717 Q837 Q252 Q1460 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q4628 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q826 Q822 Q241 Q242 Q244 Q811 Q153136 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q819 Q424 Q730 Q1013 Q159626 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1044 Q1041 Q27 Q28 Q921 Q1049 Q1025 Q1027 Q1020 Q189 Q843 Q184 Q1029 Q1028 Q736 Q786 Q227 Q225 Q224 Q223 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q1009 Q1008 Q971 Q970 Q239502 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q1011 Q945 Q29 Q672 Q176 Q863 Q869 Q953
(c(Q15416)|c(Q2342494),P495,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q15416
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q917
relation P495
type Q15416
type Q2342494
[ANSWER]
[[{'concept': 'Q15416'}, {'concept': 'Q2342494'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) ?a WHERE { { ?s property:P495 ?a . ?a rdf:type ontology:Q15617994 . ?s rdf:type ontology:Q15416 } UNION { ?s property:P495 ?a . ?s rdf:type ontology:Q2342494 . ?a rdf:type ontology:Q15617994 } } GROUP BY ?a } . FILTER ( ?r = ?q ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?q ) WHERE { { { ?k rdf:type ontology:Q15416 } UNION { ?k rdf:type ontology:Q2342494 } } . ?k property:P495 resource:Q917 } } }
Yemen Panama Israel Costa Rica Sardinia Peru India Argentina France Netherlands Abbasid caliphate Algeria People's Republic of China Honduras Uzbekistan Lithuania West Bank Fiji Mongolia Venezuela Nepal Indonesia Sicily Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Faroe Islands Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Maldives Lebanon Cuba Belize Barbados Nicaragua Habsburg Empire Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Württemberg Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Sierra Leone Senegal Ireland Hungary Brunei Sudan Mauritania Mauritius Malawi Iceland Pakistan Belarus Mozambique Morocco Ecuador Dominican Republic Azerbaijan Bosnia and Herzegovina Croatia Greenland 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 Chile 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 Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Cape Verde Togo Spain Tuvalu Quebec Tajikistan Thailand Zambia
167
action count
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type television program
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type collectable
action count
action filter_multi_types
action find_reverse
entity Bhutan
relation country of origin
type television program
type collectable
[[{'concept': 'television program'}, {'concept': 'collectable'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) ?a WHERE { { ?s property:country_of_origin ?a . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s rdf:type ontology:television_program } UNION { ?s property:country_of_origin ?a . ?s rdf:type ontology:collectable . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?a } . FILTER ( ?r = ?q ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?q ) WHERE { { { ?k rdf:type ontology:television_program } UNION { ?k rdf:type ontology:collectable } } . ?k property:country_of_origin resource:Bhutan } } }
[]
Logical Reasoning (All)
Logical|Difference|Multiple_Relation
Q3779043 Q30
P530 P27
Q15617994
USER
Which administrative territories have diplomatic relationships with United States of America and are not the countries of citizenship of Guglielmo Zorzi ?
AND((Q30,P530,c(Q15617994)), NOT((Q3779043,P27,c(Q15617994))))
action filter_type
action difference
action find
entity Q30
relation P530
action find
entity Q3779043
relation P27
type Q15617994
{'AND': [['Q30', 'P530', {'concept': 'Q15617994'}], {'NOT': [['Q3779043', 'P27', {'concept': 'Q15617994'}]]}]}
SELECT DISTINCT ?t WHERE { resource:Q30 property:P530 ?t . FILTER NOT EXISTS { resource:Q3779043 property:P27 ?t } . ?t rdf:type ontology:Q15617994 }
Guglielmo Zorzi United States of America
action filter_type
action difference
action find
entity United States of America
relation diplomatic relation
action find
entity Guglielmo Zorzi
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['United States of America', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], {'NOT': [['Guglielmo Zorzi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}]}
SELECT DISTINCT ?t WHERE { resource:United_States_of_America property:diplomatic_relation ?t . FILTER NOT EXISTS { resource:Guglielmo_Zorzi property:country_of_citizenship ?t } . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q414 Q1011 Q148 Q953 Q347 Q222 Q17 Q796 Q805 Q403
SYSTEM
Some of them are Argentina, Cape Verde, People's Republic of China, Zambia, Liechtenstein, Albania, Japan, Iraq, Yemen, Serbia
Q805 Q159 Q222 Q801 Q155 Q148 Q1011 Q889 Q796 Q17 Q37 Q953 Q668 Q403 Q347 Q414
AND((Q30,P530,c(Q15617994)), NOT((Q3779043,P27,c(Q15617994))))
action filter_type
action difference
action find
entity Q30
relation P530
action find
entity Q3779043
relation P27
type Q15617994
[ANSWERS] have diplomatic relationships with United States of America and are not the countries of citizenship of Guglielmo Zorzi
{'AND': [['Q30', 'P530', {'concept': 'Q15617994'}], {'NOT': [['Q3779043', 'P27', {'concept': 'Q15617994'}]]}]}
SELECT DISTINCT ?t WHERE { resource:Q30 property:P530 ?t . FILTER NOT EXISTS { resource:Q3779043 property:P27 ?t } . ?t rdf:type ontology:Q15617994 }
Yemen Russia Albania Israel Brazil People's Republic of China Cape Verde Afghanistan Iraq Japan Lithuania Zambia India Serbia Liechtenstein Argentina
Argentina, Cape Verde, People's Republic of China, Zambia, Liechtenstein, Albania, Japan, Iraq, Yemen and Serbia have diplomatic relationships with United States of America and are not the countries of citizenship of Guglielmo Zorzi
Argentina Cape Verde People's Republic of China Zambia Liechtenstein Albania Japan Iraq Yemen Serbia
action filter_type
action difference
action find
entity United States of America
relation diplomatic relation
action find
entity Guglielmo Zorzi
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['United States of America', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], {'NOT': [['Guglielmo Zorzi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}]}
SELECT DISTINCT ?t WHERE { resource:United_States_of_America property:diplomatic_relation ?t . FILTER NOT EXISTS { resource:Guglielmo_Zorzi property:country_of_citizenship ?t } . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q30
P530
Q15617994
USER
Are United States of America known to have diplomatic connections with those ones ?
(Q30,P530,Q414) (Q30,P530,Q1011) (Q30,P530,Q148) (Q30,P530,Q953) (Q30,P530,Q347) (Q30,P530,Q222) (Q30,P530,Q17) (Q30,P530,Q796) (Q30,P530,Q805) (Q30,P530,Q403)
action is_in
entity prev_answer
action find
entity Q30
relation P530
['Q30', 'P530', 'Q414'] ['Q30', 'P530', 'Q1011'] ['Q30', 'P530', 'Q148'] ['Q30', 'P530', 'Q953'] ['Q30', 'P530', 'Q347'] ['Q30', 'P530', 'Q222'] ['Q30', 'P530', 'Q17'] ['Q30', 'P530', 'Q796'] ['Q30', 'P530', 'Q805'] ['Q30', 'P530', 'Q403']
ASK WHERE { resource:Q30 property:P530 ?q . VALUES ( ?q ) { ( resource:Q805 ) ( resource:Q159 ) ( resource:Q222 ) } }
United States of America
action is_in
entity prev_answer
action find
entity United States of America
relation diplomatic relation
['United States of America', 'diplomatic relation', 'Argentina'] ['United States of America', 'diplomatic relation', 'Cape Verde'] ['United States of America', 'diplomatic relation', "People's Republic of China"] ['United States of America', 'diplomatic relation', 'Zambia'] ['United States of America', 'diplomatic relation', 'Liechtenstein'] ['United States of America', 'diplomatic relation', 'Albania'] ['United States of America', 'diplomatic relation', 'Japan'] ['United States of America', 'diplomatic relation', 'Iraq'] ['United States of America', 'diplomatic relation', 'Yemen'] ['United States of America', 'diplomatic relation', 'Serbia']
ASK WHERE { resource:United_States_of_America property:diplomatic_relation ?q . VALUES ( ?q ) { ( resource:Yemen ) ( resource:Russia ) ( resource:Albania ) } }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q30,P530,Q414) (Q30,P530,Q1011) (Q30,P530,Q148) (Q30,P530,Q953) (Q30,P530,Q347) (Q30,P530,Q222) (Q30,P530,Q17) (Q30,P530,Q796) (Q30,P530,Q805) (Q30,P530,Q403)
action is_in
entity prev_answer
action find
entity Q30
relation P530
[ANSWER]
['Q30', 'P530', 'Q414'] ['Q30', 'P530', 'Q1011'] ['Q30', 'P530', 'Q148'] ['Q30', 'P530', 'Q953'] ['Q30', 'P530', 'Q347'] ['Q30', 'P530', 'Q222'] ['Q30', 'P530', 'Q17'] ['Q30', 'P530', 'Q796'] ['Q30', 'P530', 'Q805'] ['Q30', 'P530', 'Q403']
ASK WHERE { resource:Q30 property:P530 ?q . VALUES ( ?q ) { ( resource:Q805 ) ( resource:Q159 ) ( resource:Q222 ) } }
Yes
action is_in
entity prev_answer
action find
entity United States of America
relation diplomatic relation
['United States of America', 'diplomatic relation', 'Argentina'] ['United States of America', 'diplomatic relation', 'Cape Verde'] ['United States of America', 'diplomatic relation', "People's Republic of China"] ['United States of America', 'diplomatic relation', 'Zambia'] ['United States of America', 'diplomatic relation', 'Liechtenstein'] ['United States of America', 'diplomatic relation', 'Albania'] ['United States of America', 'diplomatic relation', 'Japan'] ['United States of America', 'diplomatic relation', 'Iraq'] ['United States of America', 'diplomatic relation', 'Yemen'] ['United States of America', 'diplomatic relation', 'Serbia']
ASK WHERE { resource:United_States_of_America property:diplomatic_relation ?q . VALUES ( ?q ) { ( resource:Yemen ) ( resource:Russia ) ( resource:Albania ) } }
[]