Simple Question (Direct)
Simple Question
Q225842
P27
Q15617994
USER
Which administrative territory is Jørn Lande a civilian of ?
(Q225842,P27,c(Q15617994))
action filter_type
action find
entity Q225842
relation P27
type Q15617994
['Q225842', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { resource:Q225842 property:P27 ?z . ?z rdf:type ontology:Q15617994 }
Jørn Lande
action filter_type
action find
entity Jørn Lande
relation country of citizenship
type designation for an administrative territorial entity
['Jørn Lande', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Jørn_Lande property:country_of_citizenship ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q20
SYSTEM
Norway
Q20
(Q225842,P27,c(Q15617994))
action filter_type
action find
entity Q225842
relation P27
type Q15617994
[ANSWER] is Jørn Lande a civilian of
['Q225842', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { resource:Q225842 property:P27 ?z . ?z rdf:type ontology:Q15617994 }
Norway
Norway is Jørn Lande a civilian of
Norway
action filter_type
action find
entity Jørn Lande
relation country of citizenship
type designation for an administrative territorial entity
['Jørn Lande', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Jørn_Lande property:country_of_citizenship ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q225842
P175
Q2031291
USER
Which releases performed that person ?
(c(Q2031291),P175,Q20)
action filter_type
action find_reverse
entity Q225842
relation P175
type Q2031291
[{'concept': 'Q2031291'}, 'P175', 'Q20']
SELECT DISTINCT ?l WHERE { ?l property:P175 resource:Q225842 . ?l rdf:type ontology:Q2031291 }
Jørn Lande
action filter_type
action find_reverse
entity Jørn Lande
relation performer
type release
[{'concept': 'release'}, 'performer', 'Norway']
SELECT DISTINCT ?l WHERE { ?l property:performer resource:Jørn_Lande . ?l rdf:type ontology:release }
[]
release
Q2471596 Q19627416 Q1763002
SYSTEM
The Battle, Dracula - Swing of Death, The Duke
Q7577867 Q1763080 Q17035349 Q1763014 Q17040346 Q1763002 Q1763568 Q1762780 Q24514671 Q947384 Q2471596 Q19627416 Q1138290
(c(Q2031291),P175,Q20)
action filter_type
action find_reverse
entity Q225842
relation P175
type Q2031291
[ANSWERS] performed that person
[{'concept': 'Q2031291'}, 'P175', 'Q20']
SELECT DISTINCT ?l WHERE { ?l property:P175 resource:Q225842 . ?l rdf:type ontology:Q2031291 }
Spirit Black Lonely Are the Brave Traveller Worldchanger Symphonic The Duke Dio Unlocking the Past Heavy Rock Radio Starfire The Battle Dracula - Swing of Death Out to Every Nation
The Battle, Dracula - Swing of Death and The Duke performed that person
The Battle Dracula - Swing of Death The Duke
action filter_type
action find_reverse
entity Jørn Lande
relation performer
type release
[{'concept': 'release'}, 'performer', 'Norway']
SELECT DISTINCT ?l WHERE { ?l property:performer resource:Jørn_Lande . ?l rdf:type ontology:release }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q20
P47
Q15617994
USER
Which administrative territories are next to the border of Norway ?
(c(Q15617994),P47,Q20)
action filter_type
action find
entity Q20
relation P47
type Q15617994
[{'concept': 'Q15617994'}, 'P47', 'Q20']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q15617994 . resource:Q20 property:P47 ?x }
Norway
action filter_type
action find
entity Norway
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Norway']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Norway property:shares_border_with ?x }
[]
designation for an administrative territorial entity
Q33 Q159 Q34
SYSTEM
Finland, Russia, Sweden
Q33 Q159 Q34
(c(Q15617994),P47,Q20)
action filter_type
action find
entity Q20
relation P47
type Q15617994
[ANSWERS] are next to the border of Norway
[{'concept': 'Q15617994'}, 'P47', 'Q20']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q15617994 . resource:Q20 property:P47 ?x }
Finland Russia Sweden
Finland, Russia and Sweden are next to the border of Norway
Finland Russia Sweden
action filter_type
action find
entity Norway
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Norway']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Norway property:shares_border_with ?x }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q33 Q159 Q34
P30
Q2221906
USER
Which geographic locations are Finland, Russia and Sweden a part of ?
(Q33,P30,c(Q2221906)) (Q159,P30,c(Q2221906)) (Q34,P30,c(Q2221906))
action union
action filter_type
action find
entity Q33
relation P30
type Q2221906
action filter_type
action find
entity Q159
relation P30
type Q2221906
action filter_type
action find
entity Q34
relation P30
type Q2221906
['Q33', 'P30', {'concept': 'Q2221906'}] ['Q159', 'P30', {'concept': 'Q2221906'}] ['Q34', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?g WHERE { ?c property:P30 ?g . VALUES ( ?c ) { ( resource:Q33 ) ( resource:Q159 ) } }
Finland Russia Sweden
action union
action filter_type
action find
entity Finland
relation continent
type geographic location
action filter_type
action find
entity Russia
relation continent
type geographic location
action filter_type
action find
entity Sweden
relation continent
type geographic location
['Finland', 'continent', {'concept': 'geographic location'}] ['Russia', 'continent', {'concept': 'geographic location'}] ['Sweden', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?g WHERE { ?c property:continent ?g . VALUES ( ?c ) { ( resource:Finland ) ( resource:Russia ) } }
[]
geographic location
Q48 Q46 Q46
SYSTEM
Europe for 2nd, 3rd, Asia for 1st
Q46 Q46 Q5401 Q48 Q46
(Q33,P30,c(Q2221906)) (Q159,P30,c(Q2221906)) (Q34,P30,c(Q2221906))
action union
action filter_type
action find
entity Q33
relation P30
type Q2221906
action filter_type
action find
entity Q159
relation P30
type Q2221906
action filter_type
action find
entity Q34
relation P30
type Q2221906
[ANSWERS]
['Q33', 'P30', {'concept': 'Q2221906'}] ['Q159', 'P30', {'concept': 'Q2221906'}] ['Q34', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?g WHERE { ?c property:P30 ?g . VALUES ( ?c ) { ( resource:Q33 ) ( resource:Q159 ) } }
Europe Europe Eurasia Asia Europe
Are Asia, Europe and Europe are Finland, Russia and Sweden a part of
Asia Europe Europe
action union
action filter_type
action find
entity Finland
relation continent
type geographic location
action filter_type
action find
entity Russia
relation continent
type geographic location
action filter_type
action find
entity Sweden
relation continent
type geographic location
['Finland', 'continent', {'concept': 'geographic location'}] ['Russia', 'continent', {'concept': 'geographic location'}] ['Sweden', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?g WHERE { ?c property:continent ?g . VALUES ( ?c ) { ( resource:Finland ) ( resource:Russia ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q33
P710
Q15275719
USER
Which recurring event has that administrative territory as its participant ?
(c(Q15275719),P710,Q33)
action filter_type
action find_reverse
entity Q33
relation P710
type Q15275719
[{'concept': 'Q15275719'}, 'P710', 'Q33']
SELECT DISTINCT ?o WHERE { ?o property:P710 resource:Q33 . ?o rdf:type ontology:Q15275719 }
Finland
action filter_type
action find_reverse
entity Finland
relation participant
type recurring event
[{'concept': 'recurring event'}, 'participant', 'Finland']
SELECT DISTINCT ?o WHERE { ?o property:participant resource:Finland . ?o rdf:type ontology:recurring_event }
[]
recurring event
Clarification for simple ques.
Q33
SYSTEM
Did you mean Finland ?
Q48 Q46 Q46
(c(Q15275719),P710,Q48) (c(Q15275719),P710,Q46) (c(Q15275719),P710,Q46)
[ANSWER]
[{'concept': 'Q15275719'}, 'P710', 'Q48'] [{'concept': 'Q15275719'}, 'P710', 'Q46'] [{'concept': 'Q15275719'}, 'P710', 'Q46']
SELECT DISTINCT ?o WHERE { ?o property:P710 resource:Q33 . ?o rdf:type ontology:Q15275719 }
Asia Europe Europe
Did you mean Finland ?
Finland
[{'concept': 'recurring event'}, 'participant', 'Asia'] [{'concept': 'recurring event'}, 'participant', 'Europe'] [{'concept': 'recurring event'}, 'participant', 'Europe']
SELECT DISTINCT ?o WHERE { ?o property:participant resource:Finland . ?o rdf:type ontology:recurring_event }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q15275719),P710,Q33)
[{'concept': 'Q15275719'}, 'P710', 'Q33']
[{'concept': 'recurring event'}, 'participant', 'Finland']
[]
Q207815
SYSTEM
Eurovision Song Contest 1996
Q207815
(c(Q15275719),P710,Q33)
action filter_type
action find_reverse
entity Q33
relation P710
type Q15275719
[ANSWER] has that administrative territory as its participant
[{'concept': 'Q15275719'}, 'P710', 'Q33']
SELECT DISTINCT ?o WHERE { ?o property:P710 resource:Q33 . ?o rdf:type ontology:Q15275719 }
Eurovision Song Contest 1996
Eurovision Song Contest 1996 has that administrative territory as its participant
Eurovision Song Contest 1996
action filter_type
action find_reverse
entity Finland
relation participant
type recurring event
[{'concept': 'recurring event'}, 'participant', 'Finland']
SELECT DISTINCT ?o WHERE { ?o property:participant resource:Finland . ?o rdf:type ontology:recurring_event }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q207815
P710
Q15617994
USER
Who were the participants of that recurring event ?
(Q207815,P710,c(Q15617994))
action filter_type
action find
entity Q207815
relation P710
type Q15617994
['Q207815', 'P710', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q207815 property:P710 ?p . ?p rdf:type ontology:Q15617994 }
Eurovision Song Contest 1996
action filter_type
action find
entity Eurovision Song Contest 1996
relation participant
type designation for an administrative territorial entity
['Eurovision Song Contest 1996', 'participant', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Eurovision_Song_Contest_1996 property:participant ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q55 Q142 Q36
SYSTEM
Netherlands, France, Poland
Q189 Q142 Q225 Q224 Q55 Q145 Q229 Q33 Q31 Q36 Q34 Q39 Q191 Q41 Q45 Q43 Q214 Q233 Q215 Q20 Q27 Q29
(Q207815,P710,c(Q15617994))
action filter_type
action find
entity Q207815
relation P710
type Q15617994
The participants of that recurring event were the [ANSWERS]
['Q207815', 'P710', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q207815 property:P710 ?p . ?p rdf:type ontology:Q15617994 }
Iceland France Bosnia and Herzegovina Croatia Netherlands United Kingdom Cyprus Finland Belgium Poland Sweden Switzerland Estonia Greece Portugal Turkey Slovakia Malta Slovenia Norway Ireland Spain
The participants of that recurring event were the Netherlands, France and Poland
Netherlands France Poland
action filter_type
action find
entity Eurovision Song Contest 1996
relation participant
type designation for an administrative territorial entity
['Eurovision Song Contest 1996', 'participant', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Eurovision_Song_Contest_1996 property:participant ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q7653725
P180
Q2221906 Q14660 Q15709879
USER
How many geographic locations are expressed in more number of flags and artwork series than Swansea docks ?
(c(Q14660)|c(Q15709879),P180,c(Q2221906))
action count
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q2221906
type Q14660
action find_reverse_tuple_counts
relation P180
type Q2221906
type Q15709879
action count
action filter_multi_types
action find_reverse
entity Q7653725
relation P180
type Q14660
type Q15709879
[[{'concept': 'Q14660'}, {'concept': 'Q15709879'}], 'P180', {'concept': 'Q2221906'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?j ) ?f WHERE { { ?f rdf:type ontology:Q2221906 . ?z rdf:type ontology:Q14660 . ?z property:P180 ?f } UNION { ?z property:P180 ?f . ?f rdf:type ontology:Q2221906 . ?z rdf:type ontology:Q15709879 } } GROUP BY ?f } . FILTER ( ?j > ?h ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?h ) WHERE { ?v property:P180 resource:Q7653725 . { VALUES ( ?p ) { ( ontology:Q14660 ) ( ontology:Q15709879 ) } . ?v rdf:type ?p } } } }
Swansea docks
action count
action greater
action union
action find_reverse_tuple_counts
relation depicts
type geographic location
type flag
action find_reverse_tuple_counts
relation depicts
type geographic location
type artwork series
action count
action filter_multi_types
action find_reverse
entity Swansea docks
relation depicts
type flag
type artwork series
[[{'concept': 'flag'}, {'concept': 'artwork series'}], 'depicts', {'concept': 'geographic location'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?j ) ?f WHERE { { ?f rdf:type ontology:geographic_location . ?z rdf:type ontology:flag . ?z property:depicts ?f } UNION { ?z property:depicts ?f . ?f rdf:type ontology:geographic_location . ?z rdf:type ontology:artwork_series } } GROUP BY ?f } . FILTER ( ?j > ?h ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?h ) WHERE { ?v property:depicts resource:Swansea_docks . { VALUES ( ?p ) { ( ontology:flag ) ( ontology:artwork_series ) } . ?v rdf:type ?p } } } }
[]
geographic location flag artwork series
SYSTEM
4
Q40357 Q107425 Q8502 Q23442
(c(Q14660)|c(Q15709879),P180,c(Q2221906))
action count
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q2221906
type Q14660
action find_reverse_tuple_counts
relation P180
type Q2221906
type Q15709879
action count
action filter_multi_types
action find_reverse
entity Q7653725
relation P180
type Q14660
type Q15709879
[ANSWER]
[[{'concept': 'Q14660'}, {'concept': 'Q15709879'}], 'P180', {'concept': 'Q2221906'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?j ) ?f WHERE { { ?f rdf:type ontology:Q2221906 . ?z rdf:type ontology:Q14660 . ?z property:P180 ?f } UNION { ?z property:P180 ?f . ?f rdf:type ontology:Q2221906 . ?z rdf:type ontology:Q15709879 } } GROUP BY ?f } . FILTER ( ?j > ?h ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?h ) WHERE { ?v property:P180 resource:Q7653725 . { VALUES ( ?p ) { ( ontology:Q14660 ) ( ontology:Q15709879 ) } . ?v rdf:type ?p } } } }
prison landscape mountain island
4
action count
action greater
action union
action find_reverse_tuple_counts
relation depicts
type geographic location
type flag
action find_reverse_tuple_counts
relation depicts
type geographic location
type artwork series
action count
action filter_multi_types
action find_reverse
entity Swansea docks
relation depicts
type flag
type artwork series
[[{'concept': 'flag'}, {'concept': 'artwork series'}], 'depicts', {'concept': 'geographic location'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?j ) ?f WHERE { { ?f rdf:type ontology:geographic_location . ?z rdf:type ontology:flag . ?z property:depicts ?f } UNION { ?z property:depicts ?f . ?f rdf:type ontology:geographic_location . ?z rdf:type ontology:artwork_series } } GROUP BY ?f } . FILTER ( ?j > ?h ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?h ) WHERE { ?v property:depicts resource:Swansea_docks . { VALUES ( ?p ) { ( ontology:flag ) ( ontology:artwork_series ) } . ?v rdf:type ?p } } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q51
P180
Q2221906 Q14660 Q15709879
USER
And how about Antarctica?
(c(Q14660)|c(Q15709879),P180,c(Q2221906))
action count
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q2221906
type Q14660
action find_reverse_tuple_counts
relation P180
type Q2221906
type Q15709879
action count
action filter_multi_types
action find_reverse
entity Q51
relation P180
type Q14660
type Q15709879
[[{'concept': 'Q14660'}, {'concept': 'Q15709879'}], 'P180', {'concept': 'Q2221906'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) ?r WHERE { ?c rdf:type ?e . VALUES ( ?e ) { ( ontology:Q15709879 ) ( ontology:Q14660 ) } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?k ) WHERE { ?j property:P180 resource:Q51 . { { ?j rdf:type ontology:Q14660 } UNION { ?j rdf:type ontology:Q15709879 } } } } . FILTER ( ?v > ?k ) }
Antarctica
action count
action greater
action union
action find_reverse_tuple_counts
relation depicts
type geographic location
type flag
action find_reverse_tuple_counts
relation depicts
type geographic location
type artwork series
action count
action filter_multi_types
action find_reverse
entity Antarctica
relation depicts
type flag
type artwork series
[[{'concept': 'flag'}, {'concept': 'artwork series'}], 'depicts', {'concept': 'geographic location'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) ?r WHERE { ?c rdf:type ?e . VALUES ( ?e ) { ( ontology:artwork_series ) ( ontology:flag ) } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?k ) WHERE { ?j property:depicts resource:Antarctica . { { ?j rdf:type ontology:flag } UNION { ?j rdf:type ontology:artwork_series } } } } . FILTER ( ?v > ?k ) }
[]
geographic location flag artwork series
SYSTEM
4
Q40357 Q107425 Q8502 Q23442
(c(Q14660)|c(Q15709879),P180,c(Q2221906))
action count
action greater
action union
action find_reverse_tuple_counts
relation P180
type Q2221906
type Q14660
action find_reverse_tuple_counts
relation P180
type Q2221906
type Q15709879
action count
action filter_multi_types
action find_reverse
entity Q51
relation P180
type Q14660
type Q15709879
[ANSWER]
[[{'concept': 'Q14660'}, {'concept': 'Q15709879'}], 'P180', {'concept': 'Q2221906'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) ?r WHERE { ?c rdf:type ?e . VALUES ( ?e ) { ( ontology:Q15709879 ) ( ontology:Q14660 ) } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?k ) WHERE { ?j property:P180 resource:Q51 . { { ?j rdf:type ontology:Q14660 } UNION { ?j rdf:type ontology:Q15709879 } } } } . FILTER ( ?v > ?k ) }
prison landscape mountain island
4
action count
action greater
action union
action find_reverse_tuple_counts
relation depicts
type geographic location
type flag
action find_reverse_tuple_counts
relation depicts
type geographic location
type artwork series
action count
action filter_multi_types
action find_reverse
entity Antarctica
relation depicts
type flag
type artwork series
[[{'concept': 'flag'}, {'concept': 'artwork series'}], 'depicts', {'concept': 'geographic location'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) ?r WHERE { ?c rdf:type ?e . VALUES ( ?e ) { ( ontology:artwork_series ) ( ontology:flag ) } } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?k ) WHERE { ?j property:depicts resource:Antarctica . { { ?j rdf:type ontology:flag } UNION { ?j rdf:type ontology:artwork_series } } } } . FILTER ( ?v > ?k ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P122
Q22676587 Q15617994 Q15617994
USER
How many administrative territories have approximately 1 monarchic systems or administrative territories as government ?
(c(Q15617994),P122,c(Q22676587)|c(Q15617994))
action count
action approx
action union
action find_tuple_counts
relation P122
type Q15617994
type Q22676587
action find_tuple_counts
relation P122
type Q15617994
type Q15617994
value 1
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q22676587'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?a ) ?q WHERE { ?b rdf:type ?k . VALUES ( ?k ) { ( ontology:Q22676587 ) ( ontology:Q15617994 ) } } GROUP BY ?q } . FILTER ( ?a = 1 ) }
action count
action approx
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type monarchic system
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'monarchic system'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?a ) ?q WHERE { ?b rdf:type ?k . VALUES ( ?k ) { ( ontology:monarchic_system ) ( ontology:designation_for_an_administrative_territorial_entity ) } } GROUP BY ?q } . FILTER ( ?a = 1 ) }
[]
monarchic system designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
7
Q833 Q889 Q689837 Q815731 Q17 Q1483510 Q878
(c(Q15617994),P122,c(Q22676587)|c(Q15617994))
action count
action approx
action union
action find_tuple_counts
relation P122
type Q15617994
type Q22676587
action find_tuple_counts
relation P122
type Q15617994
type Q15617994
value 1
[ANSWER]
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q22676587'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?a ) ?q WHERE { ?b rdf:type ?k . VALUES ( ?k ) { ( ontology:Q22676587 ) ( ontology:Q15617994 ) } } GROUP BY ?q } . FILTER ( ?a = 1 ) }
Malaysia Afghanistan Spanish Sahara Principality of Bulgaria Japan Principality of Wales United Arab Emirates
7
action count
action approx
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type monarchic system
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'monarchic system'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?h ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?a ) ?q WHERE { ?b rdf:type ?k . VALUES ( ?k ) { ( ontology:monarchic_system ) ( ontology:designation_for_an_administrative_territorial_entity ) } } GROUP BY ?q } . FILTER ( ?a = 1 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2773 Q33
P6
Q502895
USER
Which people are Finland or Braunschweig the head of goverment of ?
OR((Q33,P6,c(Q502895)), (Q2773,P6,c(Q502895)))
action filter_type
action union
action find
entity Q33
relation P6
action find
entity Q2773
relation P6
type Q502895
{'OR': [['Q33', 'P6', {'concept': 'Q502895'}], ['Q2773', 'P6', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q33 property:P6 ?l } UNION { resource:Q2773 property:P6 ?l } } . ?l rdf:type ontology:Q502895 }
Braunschweig Finland
action filter_type
action union
action find
entity Finland
relation head of government
action find
entity Braunschweig
relation head of government
type common name
{'OR': [['Finland', 'head of government', {'concept': 'common name'}], ['Braunschweig', 'head of government', {'concept': 'common name'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Finland property:head_of_government ?l } UNION { resource:Braunschweig property:head_of_government ?l } } . ?l rdf:type ontology:common_name }
[]
common name
Q1554402 Q57638 Q2038230 Q1903045 Q1694987 Q503143 Q2545087 Q825550 Q1268847 Q1711532
SYSTEM
Some of them are Günter Jaenicke, Jyrki Katainen, Otto Bennemann, Martha Fuchs, Werner Steffens, Alexander Stubb, Walter Klöditz, Bernhard Ließ, Hartmut Scupin, Juha Sipilä
Q1268847 Q825550 Q2038230 Q2545087 Q15852002 Q1903045 Q503143 Q1792992 Q1711532 Q1554402 Q57638 Q1694987 Q87640 Q1515217
OR((Q33,P6,c(Q502895)), (Q2773,P6,c(Q502895)))
action filter_type
action union
action find
entity Q33
relation P6
action find
entity Q2773
relation P6
type Q502895
[ANSWERS] are Finland or Braunschweig the head of goverment of
{'OR': [['Q33', 'P6', {'concept': 'Q502895'}], ['Q2773', 'P6', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q33 property:P6 ?l } UNION { resource:Q2773 property:P6 ?l } } . ?l rdf:type ontology:Q502895 }
Hartmut Scupin Bernhard Ließ Otto Bennemann Walter Klöditz Ulrich Markurth Martha Fuchs Alexander Stubb Kurd Semler Juha Sipilä Günter Jaenicke Jyrki Katainen Werner Steffens Gerhard Glogowski Gert Hoffmann
Günter Jaenicke, Jyrki Katainen, Otto Bennemann, Martha Fuchs, Werner Steffens, Alexander Stubb, Walter Klöditz, Bernhard Ließ, Hartmut Scupin and Juha Sipilä are Finland or Braunschweig the head of goverment of
Günter Jaenicke Jyrki Katainen Otto Bennemann Martha Fuchs Werner Steffens Alexander Stubb Walter Klöditz Bernhard Ließ Hartmut Scupin Juha Sipilä
action filter_type
action union
action find
entity Finland
relation head of government
action find
entity Braunschweig
relation head of government
type common name
{'OR': [['Finland', 'head of government', {'concept': 'common name'}], ['Braunschweig', 'head of government', {'concept': 'common name'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Finland property:head_of_government ?l } UNION { resource:Braunschweig property:head_of_government ?l } } . ?l rdf:type ontology:common_name }
[]