Simple Question (Direct)
Simple Question
Q6375520
P734
Q82799
USER
Who is associated with Kate Hansen ?
(Q6375520,P734,c(Q82799))
action filter_type
action find
entity Q6375520
relation P734
type Q82799
['Q6375520', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?f WHERE { resource:Q6375520 property:P734 ?f . ?f rdf:type ontology:Q82799 }
Kate Hansen
action filter_type
action find
entity Kate Hansen
relation family name
type name
['Kate Hansen', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?f WHERE { resource:Kate_Hansen property:family_name ?f . ?f rdf:type ontology:name }
[]
name
Q2712367
SYSTEM
Hansen
Q2712367
(Q6375520,P734,c(Q82799))
action filter_type
action find
entity Q6375520
relation P734
type Q82799
To [ANSWER] is associated with Kate [ANSWER]
['Q6375520', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?f WHERE { resource:Q6375520 property:P734 ?f . ?f rdf:type ontology:Q82799 }
Hansen
To Hansen is associated with Kate Hansen
Hansen
action filter_type
action find
entity Kate Hansen
relation family name
type name
['Kate Hansen', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?f WHERE { resource:Kate_Hansen property:family_name ?f . ?f rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6375520
P1344
Q15900616
USER
Which event sequence did Kate Hansen participate in ?
(Q6375520,P1344,c(Q15900616))
action filter_type
action find
entity Q6375520
relation P1344
type Q15900616
['Q6375520', 'P1344', {'concept': 'Q15900616'}]
SELECT DISTINCT ?a WHERE { resource:Q6375520 property:P1344 ?a . ?a rdf:type ontology:Q15900616 }
Kate Hansen
action filter_type
action find
entity Kate Hansen
relation participant of
type event sequence
['Kate Hansen', 'participant of', {'concept': 'event sequence'}]
SELECT DISTINCT ?a WHERE { resource:Kate_Hansen property:participant_of ?a . ?a rdf:type ontology:event_sequence }
[]
event sequence
Q9678
SYSTEM
2014 Winter Olympics
Q9678
(Q6375520,P1344,c(Q15900616))
action filter_type
action find
entity Q6375520
relation P1344
type Q15900616
Kate Hansen participated in [ANSWER]
['Q6375520', 'P1344', {'concept': 'Q15900616'}]
SELECT DISTINCT ?a WHERE { resource:Q6375520 property:P1344 ?a . ?a rdf:type ontology:Q15900616 }
2014 Winter Olympics
Kate Hansen participated in 2014 Winter Olympics
2014 Winter Olympics
action filter_type
action find
entity Kate Hansen
relation participant of
type event sequence
['Kate Hansen', 'participant of', {'concept': 'event sequence'}]
SELECT DISTINCT ?a WHERE { resource:Kate_Hansen property:participant_of ?a . ?a rdf:type ontology:event_sequence }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P466
Q1076486 Q811979
USER
How many sports venues or architectural structures are occupied by that event sequence ?
(c(Q1076486),P466,Q9678) (c(Q811979),P466,Q9678) (c(Q1076486),P466,Q9678) (c(Q811979),P466,Q9678)
action count
action union
action filter_type
action find_reverse
entity Q9678
relation P466
type Q1076486
action filter_type
action find_reverse
entity Q9678
relation P466
type Q811979
[{'concept': 'Q1076486'}, 'P466', 'Q9678'] [{'concept': 'Q811979'}, 'P466', 'Q9678'] [{'concept': 'Q1076486'}, 'P466', 'Q9678'] [{'concept': 'Q811979'}, 'P466', 'Q9678']
SELECT DISTINCT ( COUNT ( ?e ) AS ?l ) WHERE { VALUES ( ?x ) { ( ontology:Q1076486 ) ( ontology:Q811979 ) } . ?e rdf:type ?x }
action count
action union
action filter_type
action find_reverse
entity 2014 Winter Olympics
relation occupant
type sports venue
action filter_type
action find_reverse
entity 2014 Winter Olympics
relation occupant
type architectural structure
[{'concept': 'sports venue'}, 'occupant', '2014 Winter Olympics'] [{'concept': 'architectural structure'}, 'occupant', '2014 Winter Olympics'] [{'concept': 'sports venue'}, 'occupant', '2014 Winter Olympics'] [{'concept': 'architectural structure'}, 'occupant', '2014 Winter Olympics']
SELECT DISTINCT ( COUNT ( ?e ) AS ?l ) WHERE { VALUES ( ?x ) { ( ontology:sports_venue ) ( ontology:architectural_structure ) } . ?e rdf:type ?x }
[]
sports venue architectural structure
SYSTEM
7
Q1149601 Q2272957 Q2389693 Q4255149 Q2945286 Q2272937 Q4063545
(c(Q1076486),P466,Q9678) (c(Q811979),P466,Q9678) (c(Q1076486),P466,Q9678) (c(Q811979),P466,Q9678)
action count
action union
action filter_type
action find_reverse
entity Q9678
relation P466
type Q1076486
action filter_type
action find_reverse
entity Q9678
relation P466
type Q811979
[ANSWER]
[{'concept': 'Q1076486'}, 'P466', 'Q9678'] [{'concept': 'Q811979'}, 'P466', 'Q9678'] [{'concept': 'Q1076486'}, 'P466', 'Q9678'] [{'concept': 'Q811979'}, 'P466', 'Q9678']
SELECT DISTINCT ( COUNT ( ?e ) AS ?l ) WHERE { VALUES ( ?x ) { ( ontology:Q1076486 ) ( ontology:Q811979 ) } . ?e rdf:type ?x }
Fisht Olympic Stadium Iceberg Skating Palace Shayba Arena Laura Biathlon & Ski Complex Ice Cube Curling Center Bolshoy Ice Dome Rosa Khutor Extreme Park
7
action count
action union
action filter_type
action find_reverse
entity 2014 Winter Olympics
relation occupant
type sports venue
action filter_type
action find_reverse
entity 2014 Winter Olympics
relation occupant
type architectural structure
[{'concept': 'sports venue'}, 'occupant', '2014 Winter Olympics'] [{'concept': 'architectural structure'}, 'occupant', '2014 Winter Olympics'] [{'concept': 'sports venue'}, 'occupant', '2014 Winter Olympics'] [{'concept': 'architectural structure'}, 'occupant', '2014 Winter Olympics']
SELECT DISTINCT ( COUNT ( ?e ) AS ?l ) WHERE { VALUES ( ?x ) { ( ontology:sports_venue ) ( ontology:architectural_structure ) } . ?e rdf:type ?x }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q165511 Q6375520
P27 P17
Q15617994
USER
Which administrative territories are Kate Hansen an inhabitant of or are Hadrut Region situated in ?
OR((Q6375520,P27,c(Q15617994)), (Q165511,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q6375520
relation P27
action find
entity Q165511
relation P17
type Q15617994
{'OR': [['Q6375520', 'P27', {'concept': 'Q15617994'}], ['Q165511', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q6375520 property:P27 ?p } UNION { resource:Q165511 property:P17 ?p } } . ?p rdf:type ontology:Q15617994 }
Hadrut Region Kate Hansen
action filter_type
action union
action find
entity Kate Hansen
relation country of citizenship
action find
entity Hadrut Region
relation country
type designation for an administrative territorial entity
{'OR': [['Kate Hansen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Hadrut Region', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Kate_Hansen property:country_of_citizenship ?p } UNION { resource:Hadrut_Region property:country ?p } } . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q227 Q30 Q399
SYSTEM
Azerbaijan, United States of America, Armenia
Q227 Q30 Q399
OR((Q6375520,P27,c(Q15617994)), (Q165511,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q6375520
relation P27
action find
entity Q165511
relation P17
type Q15617994
[ANSWERS] are Kate Hansen an inhabitant of or are Hadrut Region situated in
{'OR': [['Q6375520', 'P27', {'concept': 'Q15617994'}], ['Q165511', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q6375520 property:P27 ?p } UNION { resource:Q165511 property:P17 ?p } } . ?p rdf:type ontology:Q15617994 }
Azerbaijan United States of America Armenia
Azerbaijan, United States of America and Armenia are Kate Hansen an inhabitant of or are Hadrut Region situated in
Azerbaijan United States of America Armenia
action filter_type
action union
action find
entity Kate Hansen
relation country of citizenship
action find
entity Hadrut Region
relation country
type designation for an administrative territorial entity
{'OR': [['Kate Hansen', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Hadrut Region', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Kate_Hansen property:country_of_citizenship ?p } UNION { resource:Hadrut_Region property:country ?p } } . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q38
P530
Q15617994
USER
Do Italy have diplomatic associations with those ones ?
(Q38,P530,Q227) (Q38,P530,Q30) (Q38,P530,Q399)
action is_in
entity prev_answer
action find
entity Q38
relation P530
['Q38', 'P530', 'Q227'] ['Q38', 'P530', 'Q30'] ['Q38', 'P530', 'Q399']
ASK WHERE { VALUES ( ?r ) { ( resource:Q227 ) ( resource:Q30 ) ( resource:Q399 ) } . resource:Q38 property:P530 ?r }
Italy
action is_in
entity prev_answer
action find
entity Italy
relation diplomatic relation
['Italy', 'diplomatic relation', 'Azerbaijan'] ['Italy', 'diplomatic relation', 'United States of America'] ['Italy', 'diplomatic relation', 'Armenia']
ASK WHERE { VALUES ( ?r ) { ( resource:Azerbaijan ) ( resource:United_States_of_America ) ( resource:Armenia ) } . resource:Italy property:diplomatic_relation ?r }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q38,P530,Q227) (Q38,P530,Q30) (Q38,P530,Q399)
action is_in
entity prev_answer
action find
entity Q38
relation P530
[ANSWER]
['Q38', 'P530', 'Q227'] ['Q38', 'P530', 'Q30'] ['Q38', 'P530', 'Q399']
ASK WHERE { VALUES ( ?r ) { ( resource:Q227 ) ( resource:Q30 ) ( resource:Q399 ) } . resource:Q38 property:P530 ?r }
Yes
action is_in
entity prev_answer
action find
entity Italy
relation diplomatic relation
['Italy', 'diplomatic relation', 'Azerbaijan'] ['Italy', 'diplomatic relation', 'United States of America'] ['Italy', 'diplomatic relation', 'Armenia']
ASK WHERE { VALUES ( ?r ) { ( resource:Azerbaijan ) ( resource:United_States_of_America ) ( resource:Armenia ) } . resource:Italy property:diplomatic_relation ?r }
[]
Logical Reasoning (All)
Logical|Difference|Multiple_Relation
Q16255291 Q38
P530 P495
Q15617994
USER
Which administrative territories have diplomatic relationships with Italy and are not the countries of origin of Welcome Back Gandhi ?
AND((Q38,P530,c(Q15617994)), NOT((Q16255291,P495,c(Q15617994))))
action filter_type
action difference
action find
entity Q38
relation P530
action find
entity Q16255291
relation P495
type Q15617994
{'AND': [['Q38', 'P530', {'concept': 'Q15617994'}], {'NOT': [['Q16255291', 'P495', {'concept': 'Q15617994'}]]}]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q15617994 . resource:Q38 property:P530 ?u . FILTER NOT EXISTS { resource:Q16255291 property:P495 ?u } }
Welcome Back Gandhi Italy
action filter_type
action difference
action find
entity Italy
relation diplomatic relation
action find
entity Welcome Back Gandhi
relation country of origin
type designation for an administrative territorial entity
{'AND': [['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], {'NOT': [['Welcome Back Gandhi', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Italy property:diplomatic_relation ?u . FILTER NOT EXISTS { resource:Welcome_Back_Gandhi property:country_of_origin ?u } }
[]
designation for an administrative territorial entity
Q217 Q213 Q238 Q222 Q159 Q184 Q221 Q191 Q39 Q423
SYSTEM
Some of them are Republic of Moldova, Czech Republic, San Marino, Albania, Russia, Belarus, Republic of Macedonia, Estonia, Switzerland, North Korea
Q805 Q219 Q869 Q801 Q189 Q843 Q184 Q423 Q822 Q419 Q347 Q414 Q142 Q225 Q224 Q55 Q222 Q221 Q145 Q148 Q96 Q31 Q229 Q228 Q33 Q32 Q17 Q30 Q37 Q36 Q79 Q34 Q77 Q39 Q1016 Q739 Q227 Q948 Q191 Q733 Q928 Q298 Q45 Q252 Q114 Q399 Q403 Q230 Q233 Q258 Q43 Q212 Q213 Q236 Q211 Q159 Q217 Q214 Q215 Q155 Q218 Q41 Q238 Q796 Q794 Q20 Q1045 Q889 Q27 Q28 Q29 Q884 Q881
AND((Q38,P530,c(Q15617994)), NOT((Q16255291,P495,c(Q15617994))))
action filter_type
action difference
action find
entity Q38
relation P530
action find
entity Q16255291
relation P495
type Q15617994
[ANSWERS] have diplomatic relationships with Italy and are not the countries of origin of Welcome Back Gandhi
{'AND': [['Q38', 'P530', {'concept': 'Q15617994'}], {'NOT': [['Q16255291', 'P495', {'concept': 'Q15617994'}]]}]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q15617994 . resource:Q38 property:P530 ?u . FILTER NOT EXISTS { resource:Q16255291 property:P495 ?u } }
Yemen Bulgaria Thailand Israel Iceland Pakistan Belarus North Korea Lebanon Peru Liechtenstein Argentina France Bosnia and Herzegovina Croatia Netherlands Albania Republic of Macedonia United Kingdom People's Republic of China Mexico Belgium Cyprus Andorra Finland Luxembourg Japan United States of America Lithuania Poland Egypt Sweden Uruguay Switzerland Libya Colombia Azerbaijan Tunisia Estonia Paraguay Philippines Chile Portugal Indonesia Kenya Armenia Serbia Georgia Malta South Africa Turkey Ukraine Czech Republic Montenegro Latvia Russia Republic of Moldova Slovakia Slovenia Brazil Romania Greece San Marino Iraq Iran Norway Somalia Afghanistan Ireland Hungary Spain South Korea Vietnam
Republic of Moldova, Czech Republic, San Marino, Albania, Russia, Belarus, Republic of Macedonia, Estonia, Switzerland and North Korea have diplomatic relationships with Italy and are not the countries of origin of Welcome Back Gandhi
Republic of Moldova Czech Republic San Marino Albania Russia Belarus Republic of Macedonia Estonia Switzerland North Korea
action filter_type
action difference
action find
entity Italy
relation diplomatic relation
action find
entity Welcome Back Gandhi
relation country of origin
type designation for an administrative territorial entity
{'AND': [['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], {'NOT': [['Welcome Back Gandhi', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}]}
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Italy property:diplomatic_relation ?u . FILTER NOT EXISTS { resource:Welcome_Back_Gandhi property:country_of_origin ?u } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q159
P47
Q183366 Q15617994
USER
How many territories and administrative territories have a shared border with Russia ?
(Q159,P47,c(Q183366)) (Q159,P47,c(Q15617994))
action count
action union
action filter_type
action find
entity Q159
relation P47
type Q183366
action filter_type
action find
entity Q159
relation P47
type Q15617994
['Q159', 'P47', {'concept': 'Q183366'}] ['Q159', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?l ) WHERE { ?j rdf:type ?k . VALUES ( ?k ) { ( ontology:Q183366 ) ( ontology:Q15617994 ) } }
Russia
action count
action union
action filter_type
action find
entity Russia
relation shares border with
type territory
action filter_type
action find
entity Russia
relation shares border with
type designation for an administrative territorial entity
['Russia', 'shares border with', {'concept': 'territory'}] ['Russia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?l ) WHERE { ?j rdf:type ?k . VALUES ( ?k ) { ( ontology:territory ) ( ontology:designation_for_an_administrative_territorial_entity ) } }
[]
territory designation for an administrative territorial entity
SYSTEM
1 territories and 16 administrative territories
Q227 Q33 Q423 Q211 Q230 Q232 Q191 Q184 Q711 Q20 Q17 Q30 Q37 Q36 Q212 Q23334 Q148
(Q159,P47,c(Q183366)) (Q159,P47,c(Q15617994))
action count
action union
action filter_type
action find
entity Q159
relation P47
type Q183366
action filter_type
action find
entity Q159
relation P47
type Q15617994
[ANSWER]
['Q159', 'P47', {'concept': 'Q183366'}] ['Q159', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?l ) WHERE { ?j rdf:type ?k . VALUES ( ?k ) { ( ontology:Q183366 ) ( ontology:Q15617994 ) } }
Azerbaijan Finland North Korea Latvia Georgia Kazakhstan Estonia Belarus Mongolia Norway Japan United States of America Lithuania Poland Ukraine Abkhazia People's Republic of China
1 territories and 16 administrative territories
action count
action union
action filter_type
action find
entity Russia
relation shares border with
type territory
action filter_type
action find
entity Russia
relation shares border with
type designation for an administrative territorial entity
['Russia', 'shares border with', {'concept': 'territory'}] ['Russia', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?l ) WHERE { ?j rdf:type ?k . VALUES ( ?k ) { ( ontology:territory ) ( ontology:designation_for_an_administrative_territorial_entity ) } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q790
P840
Q15617994 Q838948 Q166142
USER
Which administrative territories are less number of works of art or applications set in than Haiti ?
(c(Q838948)|c(Q166142),P840,c(Q15617994))
action less
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q166142
action count
action filter_multi_types
action find_reverse
entity Q790
relation P840
type Q838948
type Q166142
[[{'concept': 'Q838948'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?s ) WHERE { ?d property:P840 resource:Q790 . { VALUES ( ?b ) { ( ontology:Q166142 ) ( ontology:Q838948 ) } . ?d rdf:type ?b } } } . FILTER ( ?v < ?s ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?v ) ?w WHERE { { ?a property:P840 ?w . ?w rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q838948 } UNION { ?a property:P840 ?w . ?w rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q166142 } } GROUP BY ?w } }
Haiti
action less
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type application
action count
action filter_multi_types
action find_reverse
entity Haiti
relation narrative location
type work of art
type application
[[{'concept': 'work of art'}, {'concept': 'application'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?s ) WHERE { ?d property:narrative_location resource:Haiti . { VALUES ( ?b ) { ( ontology:application ) ( ontology:work_of_art ) } . ?d rdf:type ?b } } } . FILTER ( ?v < ?s ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?v ) ?w WHERE { { ?a property:narrative_location ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:work_of_art } UNION { ?a property:narrative_location ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:application } } GROUP BY ?w } }
[]
designation for an administrative territorial entity work of art application
Q230 Q1011 Q114
SYSTEM
Georgia, Cape Verde, Kenya
Q20837 Q3278 Q1948 Q265 Q18021 Q712 Q711 Q252 Q1460 Q399 Q1979 Q165040 Q490398 Q12515 Q58477 Q733 Q854 Q819 Q340628 Q769680 Q230 Q12538 Q1044 Q1860611 Q1027 Q2009 Q843 Q2007 Q1029 Q511806 Q163966 Q223 Q12700 Q3207 Q159689 Q114 Q219 Q20571 Q1210 Q1005 Q683 Q874 Q1011 Q678 Q12545 Q53216
(c(Q838948)|c(Q166142),P840,c(Q15617994))
action less
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q166142
action count
action filter_multi_types
action find_reverse
entity Q790
relation P840
type Q838948
type Q166142
[ANSWERS] are less number of works of art or applications set in than Haiti
[[{'concept': 'Q838948'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?s ) WHERE { ?d property:P840 resource:Q790 . { VALUES ( ?b ) { ( ontology:Q166142 ) ( ontology:Q838948 ) } . ?d rdf:type ?b } } } . FILTER ( ?v < ?s ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?v ) ?w WHERE { { ?a property:P840 ?w . ?w rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q838948 } UNION { ?a property:P840 ?w . ?w rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q166142 } } GROUP BY ?w } }
Fanø Charente-Maritime Manitoba Uzbekistan Biella Fiji Mongolia Indonesia Sicily Armenia Prince Edward Island Duchy of Parma Peenemünde Gard Capua Paraguay Sri Lanka Laos Aggius Bornholm Georgia Haute-Garonne Sierra Leone Viby Mauritius Yukon Pakistan Northwest Territories Mozambique North Slope Borough Mitte Greenland Hautes-Pyrénées Aude Bomarzo Kenya Bulgaria Spoleto Lombardy Gambia Samoa Turkmenistan Cape Verde Tonga Hérault Aquileia
Georgia, Cape Verde and Kenya are less number of works of art or applications set in than Haiti
Georgia Cape Verde Kenya
action less
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type application
action count
action filter_multi_types
action find_reverse
entity Haiti
relation narrative location
type work of art
type application
[[{'concept': 'work of art'}, {'concept': 'application'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?s ) WHERE { ?d property:narrative_location resource:Haiti . { VALUES ( ?b ) { ( ontology:application ) ( ontology:work_of_art ) } . ?d rdf:type ?b } } } . FILTER ( ?v < ?s ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?v ) ?w WHERE { { ?a property:narrative_location ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:work_of_art } UNION { ?a property:narrative_location ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:application } } GROUP BY ?w } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q212
P840
Q15617994 Q838948 Q166142
USER
And how about Ukraine?
(c(Q838948)|c(Q166142),P840,c(Q15617994))
action less
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q166142
action count
action filter_multi_types
action find_reverse
entity Q212
relation P840
type Q838948
type Q166142
[[{'concept': 'Q838948'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?i ) ?o WHERE { { ?o rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q838948 . ?z property:P840 ?o } UNION { ?o rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q166142 . ?z property:P840 ?o } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) WHERE { ?h property:P840 resource:Q212 . { { ?h rdf:type ontology:Q838948 } UNION { ?h rdf:type ontology:Q166142 } } } } . FILTER ( ?i < ?p ) }
Ukraine
action less
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type application
action count
action filter_multi_types
action find_reverse
entity Ukraine
relation narrative location
type work of art
type application
[[{'concept': 'work of art'}, {'concept': 'application'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?i ) ?o WHERE { { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:work_of_art . ?z property:narrative_location ?o } UNION { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:application . ?z property:narrative_location ?o } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) WHERE { ?h property:narrative_location resource:Ukraine . { { ?h rdf:type ontology:work_of_art } UNION { ?h rdf:type ontology:application } } } } . FILTER ( ?i < ?p ) }
[]
designation for an administrative territorial entity work of art application
Q230 Q148 Q801
SYSTEM
Georgia, People's Republic of China, Israel
Q377277 Q805 Q804 Q801 Q20837 Q278221 Q186115 Q3278 Q1948 Q145 Q262 Q148 Q189 Q265 Q47428 Q18021 Q842 Q36678 Q712 Q711 Q710 Q717 Q837 Q252 Q1460 Q399 Q403 Q1979 Q45 Q790 Q796 Q794 Q884 Q881 Q858 Q419 Q165040 Q822 Q241 Q232782 Q244 Q1974 Q490398 Q12515 Q32 Q37 Q34 Q928 Q58477 Q739 Q423 Q424 Q851 Q733 Q854 Q819 Q340628 Q769680 Q12798 Q236 Q230 Q12538 Q232 Q233 Q1093 Q1045 Q1044 Q1860611 Q1041 Q27 Q913434 Q29 Q127043 Q1027 Q2009 Q843 Q2007 Q184 Q1029 Q1028 Q511806 Q1458 Q91217 Q1452 Q227 Q225 Q163966 Q223 Q12700 Q2336399 Q3207 Q1033 Q1030 Q191 Q962 Q963 Q159689 Q298 Q114 Q41158 Q750 Q213 Q517107 Q217 Q218 Q219 Q20571 Q1210 Q912 Q2107 Q1007 Q1005 Q833 Q14859 Q2742 Q683 Q836 Q874 Q77 Q774 Q948 Q817 Q810 Q1019 Q1014 Q1016 Q1273 Q1011 Q28 Q12620 Q678 Q800 Q12545 Q1952 Q53216 Q6247
(c(Q838948)|c(Q166142),P840,c(Q15617994))
action less
action union
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P840
type Q15617994
type Q166142
action count
action filter_multi_types
action find_reverse
entity Q212
relation P840
type Q838948
type Q166142
[ANSWERS]
[[{'concept': 'Q838948'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?i ) ?o WHERE { { ?o rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q838948 . ?z property:P840 ?o } UNION { ?o rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q166142 . ?z property:P840 ?o } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) WHERE { ?h property:P840 resource:Q212 . { { ?h rdf:type ontology:Q838948 } UNION { ?h rdf:type ontology:Q166142 } } } } . FILTER ( ?i < ?p ) }
Glückstadt Yemen Panama Israel Fanø Berchtesgaden Montmartre Charente-Maritime Manitoba United Kingdom Algeria People's Republic of China Iceland Uzbekistan Valdobbiadene Biella Oman West Bank Fiji Mongolia Kiribati Venezuela Nepal Indonesia Sicily Armenia Serbia Prince Edward Island Portugal Haiti Iraq Iran South Korea Vietnam Syria Peru Duchy of Parma Lebanon Cuba Portofino Barbados British Columbia Peenemünde Gard Luxembourg Lithuania Sweden Philippines Capua Colombia North Korea Cambodia Saudi Arabia Paraguay Sri Lanka Laos Aggius Bornholm Vendée Montenegro Georgia Haute-Garonne Kazakhstan Malta Limburg Somalia Sierra Leone Viby Senegal Ireland Les Halles Spain Garmisch-Partenkirchen Mauritius Yukon Pakistan Northwest Territories Belarus Mozambique Morocco North Slope Borough Calabria Montepulciano Basilicata Azerbaijan Bosnia and Herzegovina Mitte Greenland Hautes-Pyrénées Baluchistan Aude Nigeria Namibia Estonia Benin Botswana Bomarzo Chile Kenya Cortina d'Ampezzo Bolivia Czech Republic Rudolstadt Republic of Moldova Romania Bulgaria Spoleto Lombardy Mali Wuppertal Guinea-Bissau Gambia Malaysia Ansbach Münster Samoa Myanmar Turkmenistan Uruguay Guatemala Tunisia Kuwait Jordan Madagascar Liberia Libya Tuscany Cape Verde Hungary Mayenne Tonga Costa Rica Hérault Nova Scotia Aquileia Mantua
Georgia People's Republic of China Israel
action less
action union
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation narrative location
type designation for an administrative territorial entity
type application
action count
action filter_multi_types
action find_reverse
entity Ukraine
relation narrative location
type work of art
type application
[[{'concept': 'work of art'}, {'concept': 'application'}], 'narrative location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?i ) ?o WHERE { { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:work_of_art . ?z property:narrative_location ?o } UNION { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:application . ?z property:narrative_location ?o } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?p ) WHERE { ?h property:narrative_location resource:Ukraine . { { ?h rdf:type ontology:work_of_art } UNION { ?h rdf:type ontology:application } } } } . FILTER ( ?i < ?p ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q7884983
P530
Q15617994
USER
Do unified school district have diplomatic associations with those ones ?
(Q7884983,P530,Q230) (Q7884983,P530,Q148) (Q7884983,P530,Q801)
action is_in
entity prev_answer
action find
entity Q7884983
relation P530
['Q7884983', 'P530', 'Q230'] ['Q7884983', 'P530', 'Q148'] ['Q7884983', 'P530', 'Q801']
ASK WHERE { resource:Q7884983 property:P530 ?c . VALUES ( ?c ) { ( resource:Q377277 ) ( resource:Q805 ) ( resource:Q804 ) } }
unified school district
action is_in
entity prev_answer
action find
entity unified school district
relation diplomatic relation
['unified school district', 'diplomatic relation', 'Georgia'] ['unified school district', 'diplomatic relation', "People's Republic of China"] ['unified school district', 'diplomatic relation', 'Israel']
ASK WHERE { resource:unified_school_district property:diplomatic_relation ?c . VALUES ( ?c ) { ( resource:Glückstadt ) ( resource:Yemen ) ( resource:Panama ) } }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q7884983,P530,Q230) (Q7884983,P530,Q148) (Q7884983,P530,Q801)
action is_in
entity prev_answer
action find
entity Q7884983
relation P530
[ANSWER]
['Q7884983', 'P530', 'Q230'] ['Q7884983', 'P530', 'Q148'] ['Q7884983', 'P530', 'Q801']
ASK WHERE { resource:Q7884983 property:P530 ?c . VALUES ( ?c ) { ( resource:Q377277 ) ( resource:Q805 ) ( resource:Q804 ) } }
No
action is_in
entity prev_answer
action find
entity unified school district
relation diplomatic relation
['unified school district', 'diplomatic relation', 'Georgia'] ['unified school district', 'diplomatic relation', "People's Republic of China"] ['unified school district', 'diplomatic relation', 'Israel']
ASK WHERE { resource:unified_school_district property:diplomatic_relation ?c . VALUES ( ?c ) { ( resource:Glückstadt ) ( resource:Yemen ) ( resource:Panama ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q159 Q334
P530
Q1048835
USER
How many political territories have diplomatic relations with Russia and Singapore ?
(c(Q1048835),P530,Q159) (c(Q1048835),P530,Q334)
action count
action intersection
action filter_type
action find_reverse
entity Q159
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q334
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', 'Q159'] [{'concept': 'Q1048835'}, 'P530', 'Q334']
SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) WHERE { ?i property:P530 resource:Q159 . ?i rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q1048835 . ?i property:P530 resource:Q334 }
Russia Singapore
action count
action intersection
action filter_type
action find_reverse
entity Russia
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Singapore
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Russia'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Singapore']
SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) WHERE { ?i property:diplomatic_relation resource:Russia . ?i rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:political_territorial_entity . ?i property:diplomatic_relation resource:Singapore }
[]
political territorial entity
SYSTEM
3
Q16 Q408 Q183
(c(Q1048835),P530,Q159) (c(Q1048835),P530,Q334)
action count
action intersection
action filter_type
action find_reverse
entity Q159
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q334
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', 'Q159'] [{'concept': 'Q1048835'}, 'P530', 'Q334']
SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) WHERE { ?i property:P530 resource:Q159 . ?i rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q1048835 . ?i property:P530 resource:Q334 }
Canada Australia Germany
3
action count
action intersection
action filter_type
action find_reverse
entity Russia
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Singapore
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Russia'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Singapore']
SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) WHERE { ?i property:diplomatic_relation resource:Russia . ?i rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:political_territorial_entity . ?i property:diplomatic_relation resource:Singapore }
[]