Simple Question (Direct)
Simple Question
Q91242
P21
Q290
USER
Which sex does Alexander von Branca have ?
(Q91242,P21,c(Q290))
action filter_type
action find
entity Q91242
relation P21
type Q290
['Q91242', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?i WHERE { resource:Q91242 property:P21 ?i . ?i rdf:type ontology:Q290 }
Alexander von Branca
action filter_type
action find
entity Alexander von Branca
relation gender
type sex
['Alexander von Branca', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?i WHERE { resource:Alexander_von_Branca property:gender ?i . ?i rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q91242,P21,c(Q290))
action filter_type
action find
entity Q91242
relation P21
type Q290
Alexander von Branca has a [ANSWER]
['Q91242', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?i WHERE { resource:Q91242 property:P21 ?i . ?i rdf:type ontology:Q290 }
male
Alexander von Branca has a male
male
action filter_type
action find
entity Alexander von Branca
relation gender
type sex
['Alexander von Branca', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?i WHERE { resource:Alexander_von_Branca property:gender ?i . ?i rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q91242
P27
Q1048835
USER
Which political territory is the country of citizenship of Alexander von Branca ?
(Q91242,P27,c(Q1048835))
action filter_type
action find
entity Q91242
relation P27
type Q1048835
['Q91242', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q1048835 . resource:Q91242 property:P27 ?s }
Alexander von Branca
action filter_type
action find
entity Alexander von Branca
relation country of citizenship
type political territorial entity
['Alexander von Branca', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:political_territorial_entity . resource:Alexander_von_Branca property:country_of_citizenship ?s }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q91242,P27,c(Q1048835))
action filter_type
action find
entity Q91242
relation P27
type Q1048835
[ANSWER] is the country of citizenship of Alexander von Branca
['Q91242', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q1048835 . resource:Q91242 property:P27 ?s }
Germany
Germany is the country of citizenship of Alexander von Branca
Germany
action filter_type
action find
entity Alexander von Branca
relation country of citizenship
type political territorial entity
['Alexander von Branca', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:political_territorial_entity . resource:Alexander_von_Branca property:country_of_citizenship ?s }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q183
P47
Q1048835
USER
Which political territories are adjacent to that one ?
(Q183,P47,c(Q1048835))
action filter_type
action find
entity Q183
relation P47
type Q1048835
['Q183', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { resource:Q183 property:P47 ?g . ?g rdf:type ontology:Q1048835 }
Germany
action filter_type
action find
entity Germany
relation shares border with
type political territorial entity
['Germany', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Germany property:shares_border_with ?g . ?g rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q35 Q40
SYSTEM
Denmark, Austria
Q35 Q40
(Q183,P47,c(Q1048835))
action filter_type
action find
entity Q183
relation P47
type Q1048835
[ANSWERS] are adjacent to that one
['Q183', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { resource:Q183 property:P47 ?g . ?g rdf:type ontology:Q1048835 }
Denmark Austria
Denmark and Austria are adjacent to that one
Denmark Austria
action filter_type
action find
entity Germany
relation shares border with
type political territorial entity
['Germany', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Germany property:shares_border_with ?g . ?g rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q35 Q40
P495
Q2088357
USER
What are Denmark and Austria a country of origin of ?
(c(Q2088357),P495,Q35) (c(Q2088357),P495,Q40)
action union
action filter_type
action find_reverse
entity Q35
relation P495
type Q2088357
action filter_type
action find_reverse
entity Q40
relation P495
type Q2088357
[{'concept': 'Q2088357'}, 'P495', 'Q35'] [{'concept': 'Q2088357'}, 'P495', 'Q40']
SELECT DISTINCT ?v WHERE { ?v property:P495 ?y . VALUES ( ?y ) { ( resource:Q35 ) ( resource:Q40 ) } }
Denmark Austria
action union
action filter_type
action find_reverse
entity Denmark
relation country of origin
type musical ensemble
action filter_type
action find_reverse
entity Austria
relation country of origin
type musical ensemble
[{'concept': 'musical ensemble'}, 'country of origin', 'Denmark'] [{'concept': 'musical ensemble'}, 'country of origin', 'Austria']
SELECT DISTINCT ?v WHERE { ?v property:country_of_origin ?y . VALUES ( ?y ) { ( resource:Denmark ) ( resource:Austria ) } }
[]
musical ensemble
Q1075779 Q7193985 Q213388
SYSTEM
Cryoshell, Pilgrimz, Aqua
Q15736322 Q7193985 Q12335135 Q21127660 Q12333592 Q15286693 Q12328956 Q4419941 Q10433982 Q4651200 Q2143596 Q213388 Q1075779 Q6732492 Q6652346 Q12338632 Q1045996 Q12304007 Q12304070 Q17482165 Q12331886 Q12334531 Q25212842 Q9087127 Q12304285 Q12303807 Q12331851 Q20729978 Q298880 Q20947442 Q688795 Q24203961 Q16318661 Q695974 Q18632647 Q692142 Q1660321 Q1563867 Q19899718 Q25374414 Q2265491 Q24711428 Q874090 Q27062141 Q26157379 Q19936840 Q2875993 Q26277693 Q686499 Q21051944 Q686887 Q4893965 Q19874541 Q1187881 Q694913 Q19937021 Q1392978 Q18630327
(c(Q2088357),P495,Q35) (c(Q2088357),P495,Q40)
action union
action filter_type
action find_reverse
entity Q35
relation P495
type Q2088357
action filter_type
action find_reverse
entity Q40
relation P495
type Q2088357
[ANSWERS] are Denmark and Austria a country of origin of
[{'concept': 'Q2088357'}, 'P495', 'Q35'] [{'concept': 'Q2088357'}, 'P495', 'Q40']
SELECT DISTINCT ?v WHERE { ?v property:P495 ?y . VALUES ( ?y ) { ( resource:Q35 ) ( resource:Q40 ) } }
Essence Pilgrimz Shotgun Revolution Solbrud Roben & Knud She talks Nightlight South Denmark Philharmonic Bounty ADS Svartsot Aqua Cryoshell Magtens Korridorer Little Trees Royal Danish Navy Band Cartridge Boil Bollocks Bell*Star Pimp-A-Lot Sania Liss The Storm Brats BliGlad Picnic Dobrek Bistro Austrian-Hungarian Haydn Orchestra The Uptown Monotones Kontrust White Stars Bifröst Mozarteum Orchestra of Salzburg Wanda Tonkünstler Orchestra Imperio Jack Frost Luise Pop Chick Quest Seer Solarjet Vienna Hofburg Orchestra Granada Franui DAWA Orchester Wiener Akademie Flowrag Vienna Chamber Orchestra TuXedoo Vienna Symphony Wiener Johann Strauss Orchester Freud DENK Visions of Atlantis Johann Sebastian Bass Vienna Mozart Orchestra Roy de Roy
Cryoshell, Pilgrimz and Aqua are Denmark and Austria a country of origin of
Cryoshell Pilgrimz Aqua
action union
action filter_type
action find_reverse
entity Denmark
relation country of origin
type musical ensemble
action filter_type
action find_reverse
entity Austria
relation country of origin
type musical ensemble
[{'concept': 'musical ensemble'}, 'country of origin', 'Denmark'] [{'concept': 'musical ensemble'}, 'country of origin', 'Austria']
SELECT DISTINCT ?v WHERE { ?v property:country_of_origin ?y . VALUES ( ?y ) { ( resource:Denmark ) ( resource:Austria ) } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q1075779 Q7193985 Q213388
P495
Q1048835
USER
What are the origins of Cryoshell, Pilgrimz and Aqua ?
(Q1075779,P495,c(Q1048835)) (Q7193985,P495,c(Q1048835)) (Q213388,P495,c(Q1048835))
action union
action filter_type
action find
entity Q1075779
relation P495
type Q1048835
action filter_type
action find
entity Q7193985
relation P495
type Q1048835
action filter_type
action find
entity Q213388
relation P495
type Q1048835
['Q1075779', 'P495', {'concept': 'Q1048835'}] ['Q7193985', 'P495', {'concept': 'Q1048835'}] ['Q213388', 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ?r WHERE { VALUES ( ?q ) { ( resource:Q7193985 ) ( resource:Q1075779 ) } . ?q property:P495 ?r }
Cryoshell Pilgrimz Aqua
action union
action filter_type
action find
entity Cryoshell
relation country of origin
type political territorial entity
action filter_type
action find
entity Pilgrimz
relation country of origin
type political territorial entity
action filter_type
action find
entity Aqua
relation country of origin
type political territorial entity
['Cryoshell', 'country of origin', {'concept': 'political territorial entity'}] ['Pilgrimz', 'country of origin', {'concept': 'political territorial entity'}] ['Aqua', 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?r WHERE { VALUES ( ?q ) { ( resource:Pilgrimz ) ( resource:Cryoshell ) } . ?q property:country_of_origin ?r }
[]
political territorial entity
Q35 Q35 Q35
SYSTEM
Denmark
Q35 Q35 Q35
(Q1075779,P495,c(Q1048835)) (Q7193985,P495,c(Q1048835)) (Q213388,P495,c(Q1048835))
action union
action filter_type
action find
entity Q1075779
relation P495
type Q1048835
action filter_type
action find
entity Q7193985
relation P495
type Q1048835
action filter_type
action find
entity Q213388
relation P495
type Q1048835
The origins of Cryoshell , Pilgrimz and Aqua are in [ANSWER], [ANSWER] and [ANSWER]
['Q1075779', 'P495', {'concept': 'Q1048835'}] ['Q7193985', 'P495', {'concept': 'Q1048835'}] ['Q213388', 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ?r WHERE { VALUES ( ?q ) { ( resource:Q7193985 ) ( resource:Q1075779 ) } . ?q property:P495 ?r }
Denmark Denmark Denmark
The origins of Cryoshell , Pilgrimz and Aqua are in Denmark, Denmark and Denmark
Denmark Denmark Denmark
action union
action filter_type
action find
entity Cryoshell
relation country of origin
type political territorial entity
action filter_type
action find
entity Pilgrimz
relation country of origin
type political territorial entity
action filter_type
action find
entity Aqua
relation country of origin
type political territorial entity
['Cryoshell', 'country of origin', {'concept': 'political territorial entity'}] ['Pilgrimz', 'country of origin', {'concept': 'political territorial entity'}] ['Aqua', 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?r WHERE { VALUES ( ?q ) { ( resource:Pilgrimz ) ( resource:Cryoshell ) } . ?q property:country_of_origin ?r }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q35
P1001
Q327333
USER
Which government agency has jurisdiction over Denmark ?
(c(Q327333),P1001,Q35)
action filter_type
action find_reverse
entity Q35
relation P1001
type Q327333
[{'concept': 'Q327333'}, 'P1001', 'Q35']
SELECT DISTINCT ?i WHERE { ?i property:P1001 resource:Q35 . ?i rdf:type ontology:Q327333 }
Denmark
action filter_type
action find_reverse
entity Denmark
relation applies to jurisdiction
type government agency
[{'concept': 'government agency'}, 'applies to jurisdiction', 'Denmark']
SELECT DISTINCT ?i WHERE { ?i property:applies_to_jurisdiction resource:Denmark . ?i rdf:type ontology:government_agency }
[]
government agency
Q3359295
SYSTEM
Ministry of Climate and Energy
Q3359295
(c(Q327333),P1001,Q35)
action filter_type
action find_reverse
entity Q35
relation P1001
type Q327333
[ANSWER] has jurisdiction over Denmark
[{'concept': 'Q327333'}, 'P1001', 'Q35']
SELECT DISTINCT ?i WHERE { ?i property:P1001 resource:Q35 . ?i rdf:type ontology:Q327333 }
Ministry of Climate and Energy
Ministry of Climate and Energy has jurisdiction over Denmark
Ministry of Climate and Energy
action filter_type
action find_reverse
entity Denmark
relation applies to jurisdiction
type government agency
[{'concept': 'government agency'}, 'applies to jurisdiction', 'Denmark']
SELECT DISTINCT ?i WHERE { ?i property:applies_to_jurisdiction resource:Denmark . ?i rdf:type ontology:government_agency }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3359295
P17
Q1048835
USER
Which political territory is that government agency present in ?
(Q3359295,P17,c(Q1048835))
action filter_type
action find
entity Q3359295
relation P17
type Q1048835
['Q3359295', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?f WHERE { resource:Q3359295 property:P17 ?f . ?f rdf:type ontology:Q1048835 }
Ministry of Climate and Energy
action filter_type
action find
entity Ministry of Climate and Energy
relation country
type political territorial entity
['Ministry of Climate and Energy', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Ministry_of_Climate_and_Energy property:country ?f . ?f rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q35
SYSTEM
Denmark
Q35
(Q3359295,P17,c(Q1048835))
action filter_type
action find
entity Q3359295
relation P17
type Q1048835
That government agency is in [ANSWER]
['Q3359295', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?f WHERE { resource:Q3359295 property:P17 ?f . ?f rdf:type ontology:Q1048835 }
Denmark
That government agency is in Denmark
Denmark
action filter_type
action find
entity Ministry of Climate and Energy
relation country
type political territorial entity
['Ministry of Climate and Energy', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Ministry_of_Climate_and_Energy property:country ?f . ?f rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q3359295 Q15620890
P17
Q1048835
USER
How many political territories are Ministry of Climate and Energy or Stadthalle located in ?
(Q3359295,P17,c(Q1048835)) (Q15620890,P17,c(Q1048835))
action count
action union
action filter_type
action find
entity Q3359295
relation P17
type Q1048835
action filter_type
action find
entity Q15620890
relation P17
type Q1048835
['Q3359295', 'P17', {'concept': 'Q1048835'}] ['Q15620890', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?h ) WHERE { { resource:Q3359295 property:P17 ?r . ?r rdf:type ontology:Q1048835 } UNION { resource:Q15620890 property:P17 ?r . ?r rdf:type ontology:Q1048835 } }
Ministry of Climate and Energy Stadthalle
action count
action union
action filter_type
action find
entity Ministry of Climate and Energy
relation country
type political territorial entity
action filter_type
action find
entity Stadthalle
relation country
type political territorial entity
['Ministry of Climate and Energy', 'country', {'concept': 'political territorial entity'}] ['Stadthalle', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?h ) WHERE { { resource:Ministry_of_Climate_and_Energy property:country ?r . ?r rdf:type ontology:political_territorial_entity } UNION { resource:Stadthalle property:country ?r . ?r rdf:type ontology:political_territorial_entity } }
[]
political territorial entity
SYSTEM
2
Q183 Q35
(Q3359295,P17,c(Q1048835)) (Q15620890,P17,c(Q1048835))
action count
action union
action filter_type
action find
entity Q3359295
relation P17
type Q1048835
action filter_type
action find
entity Q15620890
relation P17
type Q1048835
[ANSWER]
['Q3359295', 'P17', {'concept': 'Q1048835'}] ['Q15620890', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?h ) WHERE { { resource:Q3359295 property:P17 ?r . ?r rdf:type ontology:Q1048835 } UNION { resource:Q15620890 property:P17 ?r . ?r rdf:type ontology:Q1048835 } }
Germany Denmark
2
action count
action union
action filter_type
action find
entity Ministry of Climate and Energy
relation country
type political territorial entity
action filter_type
action find
entity Stadthalle
relation country
type political territorial entity
['Ministry of Climate and Energy', 'country', {'concept': 'political territorial entity'}] ['Stadthalle', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?h ) WHERE { { resource:Ministry_of_Climate_and_Energy property:country ?r . ?r rdf:type ontology:political_territorial_entity } UNION { resource:Stadthalle property:country ?r . ?r rdf:type ontology:political_territorial_entity } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q664
P495
Q1048835 Q2031291 Q15416
USER
Which political territories did approximately the same number of releases and television programs originate as New Zealand ?
(c(Q2031291)|c(Q15416),P495,c(Q1048835))
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q2031291
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q15416
action count
action filter_multi_types
action find_reverse
entity Q664
relation P495
type Q2031291
type Q15416
[[{'concept': 'Q2031291'}, {'concept': 'Q15416'}], 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?d ) AS ?h ) WHERE { { ?d property:P495 ?s . ?d rdf:type ontology:Q2031291 . ?s rdf:type ontology:Q1048835 } UNION { ?d property:P495 ?s . ?s rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q15416 } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?z ) WHERE { { { ?q rdf:type ontology:Q2031291 } UNION { ?q rdf:type ontology:Q15416 } } . ?q property:P495 resource:Q664 } } . FILTER ( ?h = ?z ) }
New Zealand
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type release
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type television program
action count
action filter_multi_types
action find_reverse
entity New Zealand
relation country of origin
type release
type television program
[[{'concept': 'release'}, {'concept': 'television program'}], 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?d ) AS ?h ) WHERE { { ?d property:country_of_origin ?s . ?d rdf:type ontology:release . ?s rdf:type ontology:political_territorial_entity } UNION { ?d property:country_of_origin ?s . ?s rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:television_program } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?z ) WHERE { { { ?q rdf:type ontology:release } UNION { ?q rdf:type ontology:television_program } } . ?q property:country_of_origin resource:New_Zealand } } . FILTER ( ?h = ?z ) }
[]
political territorial entity release television program
Q35 Q40 Q5705
SYSTEM
Denmark, Austria, Catalonia
Q1000 Q1747689 Q838261 Q769 Q763 Q664 Q766 Q1054923 Q13353 Q781 Q5705 Q1823 Q35 Q407199 Q778 Q691 Q234 Q2991382 Q40 Q9337 Q23635 Q31747 Q129286
(c(Q2031291)|c(Q15416),P495,c(Q1048835))
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q2031291
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q15416
action count
action filter_multi_types
action find_reverse
entity Q664
relation P495
type Q2031291
type Q15416
[ANSWERS] approximately the same number of releases and television programs originated as New Zealand
[[{'concept': 'Q2031291'}, {'concept': 'Q15416'}], 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?d ) AS ?h ) WHERE { { ?d property:P495 ?s . ?d rdf:type ontology:Q2031291 . ?s rdf:type ontology:Q1048835 } UNION { ?d property:P495 ?s . ?s rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q15416 } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?z ) WHERE { { { ?q rdf:type ontology:Q2031291 } UNION { ?q rdf:type ontology:Q15416 } } . ?q property:P495 resource:Q664 } } . FILTER ( ?h = ?z ) }
Gabon Ancient Rome Federal Republic of Yugoslavia Grenada Saint Kitts and Nevis New Zealand Jamaica British Hong Kong Montserrat Antigua and Barbuda Catalonia Aceh Denmark Palestinian territories The Bahamas Papua New Guinea Flemish Region County of Provence Austria Flemish Region Bermuda Irish Free State British Raj
Denmark, Austria and Catalonia approximately the same number of releases and television programs originated as New Zealand
Denmark Austria Catalonia
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type release
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type television program
action count
action filter_multi_types
action find_reverse
entity New Zealand
relation country of origin
type release
type television program
[[{'concept': 'release'}, {'concept': 'television program'}], 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?d ) AS ?h ) WHERE { { ?d property:country_of_origin ?s . ?d rdf:type ontology:release . ?s rdf:type ontology:political_territorial_entity } UNION { ?d property:country_of_origin ?s . ?s rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:television_program } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?z ) WHERE { { { ?q rdf:type ontology:release } UNION { ?q rdf:type ontology:television_program } } . ?q property:country_of_origin resource:New_Zealand } } . FILTER ( ?h = ?z ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q1823
P495
Q1048835 Q2031291 Q15416
USER
And what about Aceh?
(c(Q2031291)|c(Q15416),P495,c(Q1048835))
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q2031291
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q15416
action count
action filter_multi_types
action find_reverse
entity Q1823
relation P495
type Q2031291
type Q15416
[[{'concept': 'Q2031291'}, {'concept': 'Q15416'}], 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?s ) AS ?h ) WHERE { { ?s property:P495 ?g . ?g rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q15416 } UNION { ?s property:P495 ?g . ?g rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q2031291 } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { ?n property:P495 resource:Q1823 . { { ?n rdf:type ontology:Q2031291 } UNION { ?n rdf:type ontology:Q15416 } } } } . FILTER ( ?h = ?c ) }
Aceh
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type release
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type television program
action count
action filter_multi_types
action find_reverse
entity Aceh
relation country of origin
type release
type television program
[[{'concept': 'release'}, {'concept': 'television program'}], 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?s ) AS ?h ) WHERE { { ?s property:country_of_origin ?g . ?g rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:television_program } UNION { ?s property:country_of_origin ?g . ?g rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:release } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { ?n property:country_of_origin resource:Aceh . { { ?n rdf:type ontology:release } UNION { ?n rdf:type ontology:television_program } } } } . FILTER ( ?h = ?c ) }
[]
political territorial entity release television program
Q35 Q40 Q5705
SYSTEM
Denmark, Austria, Catalonia
Q1000 Q1747689 Q838261 Q769 Q763 Q664 Q766 Q1054923 Q13353 Q781 Q5705 Q1823 Q35 Q407199 Q778 Q691 Q234 Q2991382 Q40 Q9337 Q23635 Q31747 Q129286
(c(Q2031291)|c(Q15416),P495,c(Q1048835))
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q2031291
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q15416
action count
action filter_multi_types
action find_reverse
entity Q1823
relation P495
type Q2031291
type Q15416
[ANSWERS]
[[{'concept': 'Q2031291'}, {'concept': 'Q15416'}], 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?s ) AS ?h ) WHERE { { ?s property:P495 ?g . ?g rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q15416 } UNION { ?s property:P495 ?g . ?g rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q2031291 } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { ?n property:P495 resource:Q1823 . { { ?n rdf:type ontology:Q2031291 } UNION { ?n rdf:type ontology:Q15416 } } } } . FILTER ( ?h = ?c ) }
Gabon Ancient Rome Federal Republic of Yugoslavia Grenada Saint Kitts and Nevis New Zealand Jamaica British Hong Kong Montserrat Antigua and Barbuda Catalonia Aceh Denmark Palestinian territories The Bahamas Papua New Guinea Flemish Region County of Provence Austria Flemish Region Bermuda Irish Free State British Raj
Denmark Austria Catalonia
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type release
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type television program
action count
action filter_multi_types
action find_reverse
entity Aceh
relation country of origin
type release
type television program
[[{'concept': 'release'}, {'concept': 'television program'}], 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?s ) AS ?h ) WHERE { { ?s property:country_of_origin ?g . ?g rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:television_program } UNION { ?s property:country_of_origin ?g . ?g rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:release } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { ?n property:country_of_origin resource:Aceh . { { ?n rdf:type ontology:release } UNION { ?n rdf:type ontology:television_program } } } } . FILTER ( ?h = ?c ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q26691702 Q3359295
P1001
Q1048835
USER
Which political territories come under the jurisdiction of Ministry of Climate and Energy or mayor of Cubellas ?
OR((Q3359295,P1001,c(Q1048835)), (Q26691702,P1001,c(Q1048835)))
action filter_type
action union
action find
entity Q3359295
relation P1001
action find
entity Q26691702
relation P1001
type Q1048835
{'OR': [['Q3359295', 'P1001', {'concept': 'Q1048835'}], ['Q26691702', 'P1001', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q3359295 property:P1001 ?y } UNION { resource:Q26691702 property:P1001 ?y } } . ?y rdf:type ontology:Q1048835 }
mayor of Cubellas Ministry of Climate and Energy
action filter_type
action union
action find
entity Ministry of Climate and Energy
relation applies to jurisdiction
action find
entity mayor of Cubellas
relation applies to jurisdiction
type political territorial entity
{'OR': [['Ministry of Climate and Energy', 'applies to jurisdiction', {'concept': 'political territorial entity'}], ['mayor of Cubellas', 'applies to jurisdiction', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Ministry_of_Climate_and_Energy property:applies_to_jurisdiction ?y } UNION { resource:mayor_of_Cubellas property:applies_to_jurisdiction ?y } } . ?y rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q15558 Q35
SYSTEM
Cubelles, Denmark
Q15558 Q35
OR((Q3359295,P1001,c(Q1048835)), (Q26691702,P1001,c(Q1048835)))
action filter_type
action union
action find
entity Q3359295
relation P1001
action find
entity Q26691702
relation P1001
type Q1048835
[ANSWERS] come under the jurisdiction of Ministry of Climate and Energy or mayor of Cubellas
{'OR': [['Q3359295', 'P1001', {'concept': 'Q1048835'}], ['Q26691702', 'P1001', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q3359295 property:P1001 ?y } UNION { resource:Q26691702 property:P1001 ?y } } . ?y rdf:type ontology:Q1048835 }
Cubelles Denmark
Cubelles and Denmark come under the jurisdiction of Ministry of Climate and Energy or mayor of Cubellas
Cubelles Denmark
action filter_type
action union
action find
entity Ministry of Climate and Energy
relation applies to jurisdiction
action find
entity mayor of Cubellas
relation applies to jurisdiction
type political territorial entity
{'OR': [['Ministry of Climate and Energy', 'applies to jurisdiction', {'concept': 'political territorial entity'}], ['mayor of Cubellas', 'applies to jurisdiction', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Ministry_of_Climate_and_Energy property:applies_to_jurisdiction ?y } UNION { resource:mayor_of_Cubellas property:applies_to_jurisdiction ?y } } . ?y rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P122
Q4164871 Q7275 Q1048835
USER
How many political territories have exactly 1 positions or states as the type of government ?
(c(Q1048835),P122,c(Q4164871)|c(Q7275))
action count
action equal
action union
action find_tuple_counts
relation P122
type Q1048835
type Q4164871
action find_tuple_counts
relation P122
type Q1048835
type Q7275
value 1
[{'concept': 'Q1048835'}, 'P122', [{'concept': 'Q4164871'}, {'concept': 'Q7275'}]]
SELECT DISTINCT ( COUNT ( ?k ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) ?k WHERE { { ?k property:P122 ?o . ?k rdf:type ontology:Q1048835 . ?o rdf:type ontology:Q4164871 } UNION { ?k rdf:type ontology:Q1048835 . ?o rdf:type ontology:Q7275 . ?k property:P122 ?o } } GROUP BY ?k } . FILTER ( ?f = 1 ) }
action count
action equal
action union
action find_tuple_counts
relation basic form of government
type political territorial entity
type position
action find_tuple_counts
relation basic form of government
type political territorial entity
type state
value 1
[{'concept': 'political territorial entity'}, 'basic form of government', [{'concept': 'position'}, {'concept': 'state'}]]
SELECT DISTINCT ( COUNT ( ?k ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) ?k WHERE { { ?k property:basic_form_of_government ?o . ?k rdf:type ontology:political_territorial_entity . ?o rdf:type ontology:position } UNION { ?k rdf:type ontology:political_territorial_entity . ?o rdf:type ontology:state . ?k property:basic_form_of_government ?o } } GROUP BY ?k } . FILTER ( ?f = 1 ) }
[]
position state political territorial entity
SYSTEM
2
Q468378 Q129286
(c(Q1048835),P122,c(Q4164871)|c(Q7275))
action count
action equal
action union
action find_tuple_counts
relation P122
type Q1048835
type Q4164871
action find_tuple_counts
relation P122
type Q1048835
type Q7275
value 1
[ANSWER]
[{'concept': 'Q1048835'}, 'P122', [{'concept': 'Q4164871'}, {'concept': 'Q7275'}]]
SELECT DISTINCT ( COUNT ( ?k ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) ?k WHERE { { ?k property:P122 ?o . ?k rdf:type ontology:Q1048835 . ?o rdf:type ontology:Q4164871 } UNION { ?k rdf:type ontology:Q1048835 . ?o rdf:type ontology:Q7275 . ?k property:P122 ?o } } GROUP BY ?k } . FILTER ( ?f = 1 ) }
County of Hoya British Raj
2
action count
action equal
action union
action find_tuple_counts
relation basic form of government
type political territorial entity
type position
action find_tuple_counts
relation basic form of government
type political territorial entity
type state
value 1
[{'concept': 'political territorial entity'}, 'basic form of government', [{'concept': 'position'}, {'concept': 'state'}]]
SELECT DISTINCT ( COUNT ( ?k ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?f ) ?k WHERE { { ?k property:basic_form_of_government ?o . ?k rdf:type ontology:political_territorial_entity . ?o rdf:type ontology:position } UNION { ?k rdf:type ontology:political_territorial_entity . ?o rdf:type ontology:state . ?k property:basic_form_of_government ?o } } GROUP BY ?k } . FILTER ( ?f = 1 ) }
[]