Simple Question (Direct)
Simple Question
Q4427091
P106
Q12737077
USER
Which occupation has Andrey Sokolov as his/her 's career ?
(Q4427091,P106,c(Q12737077))
action filter_type
action find
entity Q4427091
relation P106
type Q12737077
['Q4427091', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { resource:Q4427091 property:P106 ?d . ?d rdf:type ontology:Q12737077 }
Andrey Sokolov
action filter_type
action find
entity Andrey Sokolov
relation occupation
type occupation
['Andrey Sokolov', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { resource:Andrey_Sokolov property:occupation ?d . ?d rdf:type ontology:occupation }
[]
occupation
Q33999
SYSTEM
actor
Q33999
(Q4427091,P106,c(Q12737077))
action filter_type
action find
entity Q4427091
relation P106
type Q12737077
The [ANSWER] has Andrey Sokolov as his/her 's career
['Q4427091', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { resource:Q4427091 property:P106 ?d . ?d rdf:type ontology:Q12737077 }
actor
The actor has Andrey Sokolov as his/her 's career
actor
action filter_type
action find
entity Andrey Sokolov
relation occupation
type occupation
['Andrey Sokolov', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { resource:Andrey_Sokolov property:occupation ?d . ?d rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4427091
P161
Q838948
USER
Which work of art has that person as actor ?
(c(Q838948),P161,Q33999)
action filter_type
action find_reverse
entity Q4427091
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q33999']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q838948 . ?x property:P161 resource:Q4427091 }
Andrey Sokolov
action filter_type
action find_reverse
entity Andrey Sokolov
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'actor']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:work_of_art . ?x property:cast_member resource:Andrey_Sokolov }
[]
work of art
Q19799528
SYSTEM
The Vampire
Q19799528
(c(Q838948),P161,Q33999)
action filter_type
action find_reverse
entity Q4427091
relation P161
type Q838948
[ANSWER] has that person as actor
[{'concept': 'Q838948'}, 'P161', 'Q33999']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q838948 . ?x property:P161 resource:Q4427091 }
The Vampire
The Vampire has that person as actor
The Vampire
action filter_type
action find_reverse
entity Andrey Sokolov
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'actor']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:work_of_art . ?x property:cast_member resource:Andrey_Sokolov }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q19799528 Q3721820 Q4401827
P344
Q502895
USER
Is Eleonora Zanetti and Konstantin Ryzhov the cinematographer of Q19799528 ?
(Q19799528,P344,Q3721820) (Q19799528,P344,Q4401827)
action is_in
entity Q19799528
action intersection
action find_reverse
entity Q3721820
relation P344
action find_reverse
entity Q4401827
relation P344
['Q19799528', 'P344', 'Q3721820'] ['Q19799528', 'P344', 'Q4401827']
ASK WHERE { resource:Q19799528 property:P344 resource:Q3721820 . resource:Q19799528 property:P344 resource:Q4401827 }
The Vampire Eleonora Zanetti Konstantin Ryzhov
action is_in
entity The Vampire
action intersection
action find_reverse
entity Eleonora Zanetti
relation director of photography
action find_reverse
entity Konstantin Ryzhov
relation director of photography
['The Vampire', 'director of photography', 'Eleonora Zanetti'] ['The Vampire', 'director of photography', 'Konstantin Ryzhov']
ASK WHERE { resource:The_Vampire property:director_of_photography resource:Eleonora_Zanetti . resource:The_Vampire property:director_of_photography resource:Konstantin_Ryzhov }
[]
common name
SYSTEM
NO and YES respectively
(Q19799528,P344,Q3721820) (Q19799528,P344,Q4401827)
action is_in
entity Q19799528
action intersection
action find_reverse
entity Q3721820
relation P344
action find_reverse
entity Q4401827
relation P344
[ANSWER]
['Q19799528', 'P344', 'Q3721820'] ['Q19799528', 'P344', 'Q4401827']
ASK WHERE { resource:Q19799528 property:P344 resource:Q3721820 . resource:Q19799528 property:P344 resource:Q4401827 }
NO and YES respectively
action is_in
entity The Vampire
action intersection
action find_reverse
entity Eleonora Zanetti
relation director of photography
action find_reverse
entity Konstantin Ryzhov
relation director of photography
['The Vampire', 'director of photography', 'Eleonora Zanetti'] ['The Vampire', 'director of photography', 'Konstantin Ryzhov']
ASK WHERE { resource:The_Vampire property:director_of_photography resource:Eleonora_Zanetti . resource:The_Vampire property:director_of_photography resource:Konstantin_Ryzhov }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q19799528
P495
Q7275
USER
Where did The Vampire originate ?
(Q19799528,P495,c(Q7275))
action filter_type
action find
entity Q19799528
relation P495
type Q7275
['Q19799528', 'P495', {'concept': 'Q7275'}]
SELECT DISTINCT ?y WHERE { resource:Q19799528 property:P495 ?y . ?y rdf:type ontology:Q7275 }
The Vampire
action filter_type
action find
entity The Vampire
relation country of origin
type state
['The Vampire', 'country of origin', {'concept': 'state'}]
SELECT DISTINCT ?y WHERE { resource:The_Vampire property:country_of_origin ?y . ?y rdf:type ontology:state }
[]
state
Q15180
SYSTEM
Soviet Union
Q15180
(Q19799528,P495,c(Q7275))
action filter_type
action find
entity Q19799528
relation P495
type Q7275
The Vampire originated from [ANSWER]
['Q19799528', 'P495', {'concept': 'Q7275'}]
SELECT DISTINCT ?y WHERE { resource:Q19799528 property:P495 ?y . ?y rdf:type ontology:Q7275 }
Soviet Union
The Vampire originated from Soviet Union
Soviet Union
action filter_type
action find
entity The Vampire
relation country of origin
type state
['The Vampire', 'country of origin', {'concept': 'state'}]
SELECT DISTINCT ?y WHERE { resource:The_Vampire property:country_of_origin ?y . ?y rdf:type ontology:state }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q19799528
P57
Q502895
USER
Who was The Vampire directed by ?
(Q19799528,P57,c(Q502895))
action filter_type
action find
entity Q19799528
relation P57
type Q502895
['Q19799528', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q19799528 property:P57 ?p . ?p rdf:type ontology:Q502895 }
The Vampire
action filter_type
action find
entity The Vampire
relation director
type common name
['The Vampire', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:The_Vampire property:director ?p . ?p rdf:type ontology:common_name }
[]
common name
Q4452500
SYSTEM
Evgenij Markovič Tatarskij
Q4452500
(Q19799528,P57,c(Q502895))
action filter_type
action find
entity Q19799528
relation P57
type Q502895
[ANSWER] The Vampire was directed by
['Q19799528', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q19799528 property:P57 ?p . ?p rdf:type ontology:Q502895 }
Evgenij Markovič Tatarskij
Evgenij Markovič Tatarskij The Vampire was directed by
Evgenij Markovič Tatarskij
action filter_type
action find
entity The Vampire
relation director
type common name
['The Vampire', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:The_Vampire property:director ?p . ?p rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q19799528
P58
Q502895
USER
Who served as the screenwriter for The Vampire ?
(Q19799528,P58,c(Q502895))
action filter_type
action find
entity Q19799528
relation P58
type Q502895
['Q19799528', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q502895 . resource:Q19799528 property:P58 ?b }
The Vampire
action filter_type
action find
entity The Vampire
relation screenwriter
type common name
['The Vampire', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:common_name . resource:The_Vampire property:screenwriter ?b }
[]
common name
Q212575 Q4275341
SYSTEM
Aleksey Konstantinovich Tolstoy, Artur Makarov
Q212575 Q4275341
(Q19799528,P58,c(Q502895))
action filter_type
action find
entity Q19799528
relation P58
type Q502895
[ANSWERS] served as the screenwriter for The Vampire
['Q19799528', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q502895 . resource:Q19799528 property:P58 ?b }
Aleksey Konstantinovich Tolstoy Artur Makarov
Aleksey Konstantinovich Tolstoy and Artur Makarov served as the screenwriter for The Vampire
Aleksey Konstantinovich Tolstoy Artur Makarov
action filter_type
action find
entity The Vampire
relation screenwriter
type common name
['The Vampire', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:common_name . resource:The_Vampire property:screenwriter ?b }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q2913801
P58
Q838948
USER
Are those people a screenwriter of The Forgotten Frontier ?
(Q2913801,P58,Q212575) (Q2913801,P58,Q4275341)
action is_in
entity prev_answer
action find
entity Q2913801
relation P58
['Q2913801', 'P58', 'Q212575'] ['Q2913801', 'P58', 'Q4275341']
ASK WHERE { VALUES ( ?w ) { ( resource:Q212575 ) ( resource:Q4275341 ) } . resource:Q2913801 property:P58 ?w }
The Forgotten Frontier
action is_in
entity prev_answer
action find
entity The Forgotten Frontier
relation screenwriter
['The Forgotten Frontier', 'screenwriter', 'Aleksey Konstantinovich Tolstoy'] ['The Forgotten Frontier', 'screenwriter', 'Artur Makarov']
ASK WHERE { VALUES ( ?w ) { ( resource:Aleksey_Konstantinovich_Tolstoy ) ( resource:Artur_Makarov ) } . resource:The_Forgotten_Frontier property:screenwriter ?w }
[]
work of art
SYSTEM
NO
(Q2913801,P58,Q212575) (Q2913801,P58,Q4275341)
action is_in
entity prev_answer
action find
entity Q2913801
relation P58
[ANSWER]
['Q2913801', 'P58', 'Q212575'] ['Q2913801', 'P58', 'Q4275341']
ASK WHERE { VALUES ( ?w ) { ( resource:Q212575 ) ( resource:Q4275341 ) } . resource:Q2913801 property:P58 ?w }
No
action is_in
entity prev_answer
action find
entity The Forgotten Frontier
relation screenwriter
['The Forgotten Frontier', 'screenwriter', 'Aleksey Konstantinovich Tolstoy'] ['The Forgotten Frontier', 'screenwriter', 'Artur Makarov']
ASK WHERE { VALUES ( ?w ) { ( resource:Aleksey_Konstantinovich_Tolstoy ) ( resource:Artur_Makarov ) } . resource:The_Forgotten_Frontier property:screenwriter ?w }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P1376
Q7275 Q486972 Q20667921
USER
Which states have max number of human settlements and french administrative divisions as their capital ?
(c(Q486972)|c(Q20667921),P1376,c(Q7275))
action argmax
action union
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q486972
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q20667921
[[{'concept': 'Q486972'}, {'concept': 'Q20667921'}], 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?f ) { SELECT DISTINCT ?b ( COUNT ( ?m ) AS ?z ) WHERE { { ?m rdf:type ontology:Q20667921 . ?b rdf:type ontology:Q7275 . ?m property:P1376 ?b } UNION { ?m property:P1376 ?b . ?b rdf:type ontology:Q7275 . ?m rdf:type ontology:Q486972 } } GROUP BY ?b } } . { SELECT DISTINCT ?l ( COUNT ( ?a ) AS ?n ) WHERE { { ?l rdf:type ontology:Q7275 . ?a rdf:type ontology:Q486972 . ?a property:P1376 ?l } UNION { ?a property:P1376 ?l . ?l rdf:type ontology:Q7275 . ?a rdf:type ontology:Q20667921 } } GROUP BY ?l } . FILTER ( ?n = ?f ) }
action argmax
action union
action find_reverse_tuple_counts
relation capital of
type state
type human settlement
action find_reverse_tuple_counts
relation capital of
type state
type type of french administrative division
[[{'concept': 'human settlement'}, {'concept': 'type of french administrative division'}], 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?f ) { SELECT DISTINCT ?b ( COUNT ( ?m ) AS ?z ) WHERE { { ?m rdf:type ontology:type_of_french_administrative_division . ?b rdf:type ontology:state . ?m property:capital_of ?b } UNION { ?m property:capital_of ?b . ?b rdf:type ontology:state . ?m rdf:type ontology:human_settlement } } GROUP BY ?b } } . { SELECT DISTINCT ?l ( COUNT ( ?a ) AS ?n ) WHERE { { ?l rdf:type ontology:state . ?a rdf:type ontology:human_settlement . ?a property:capital_of ?l } UNION { ?a property:capital_of ?l . ?l rdf:type ontology:state . ?a rdf:type ontology:type_of_french_administrative_division } } GROUP BY ?l } . FILTER ( ?n = ?f ) }
[]
state human settlement type of french administrative division
Q16957 Q172107 Q112558
SYSTEM
East Germany, Polish–Lithuanian Commonwealth, Republic of Saugeais
Q3456417 Q1649871 Q2361927 Q953432 Q216173 Q16957 Q172107 Q797422 Q235030 Q842091 Q112558 Q487829
(c(Q486972)|c(Q20667921),P1376,c(Q7275))
action argmax
action union
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q486972
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q20667921
[ANSWERS] have max number of human settlements and french administrative divisions as their capital
[[{'concept': 'Q486972'}, {'concept': 'Q20667921'}], 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?f ) { SELECT DISTINCT ?b ( COUNT ( ?m ) AS ?z ) WHERE { { ?m rdf:type ontology:Q20667921 . ?b rdf:type ontology:Q7275 . ?m property:P1376 ?b } UNION { ?m property:P1376 ?b . ?b rdf:type ontology:Q7275 . ?m rdf:type ontology:Q486972 } } GROUP BY ?b } } . { SELECT DISTINCT ?l ( COUNT ( ?a ) AS ?n ) WHERE { { ?l rdf:type ontology:Q7275 . ?a rdf:type ontology:Q486972 . ?a property:P1376 ?l } UNION { ?a property:P1376 ?l . ?l rdf:type ontology:Q7275 . ?a rdf:type ontology:Q20667921 } } GROUP BY ?l } . FILTER ( ?n = ?f ) }
Republic of Saint-Malo Kingdom of Poland Duchy of Masovia Couto Misto Free City of Danzig East Germany Polish–Lithuanian Commonwealth Republic of Upper Volta Principality of Antioch Duchy of Normandy Republic of Saugeais Chagatai Khanate
East Germany, Polish–Lithuanian Commonwealth and Republic of Saugeais have max number of human settlements and french administrative divisions as their capital
East Germany Polish–Lithuanian Commonwealth Republic of Saugeais
action argmax
action union
action find_reverse_tuple_counts
relation capital of
type state
type human settlement
action find_reverse_tuple_counts
relation capital of
type state
type type of french administrative division
[[{'concept': 'human settlement'}, {'concept': 'type of french administrative division'}], 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?f ) { SELECT DISTINCT ?b ( COUNT ( ?m ) AS ?z ) WHERE { { ?m rdf:type ontology:type_of_french_administrative_division . ?b rdf:type ontology:state . ?m property:capital_of ?b } UNION { ?m property:capital_of ?b . ?b rdf:type ontology:state . ?m rdf:type ontology:human_settlement } } GROUP BY ?b } } . { SELECT DISTINCT ?l ( COUNT ( ?a ) AS ?n ) WHERE { { ?l rdf:type ontology:state . ?a rdf:type ontology:human_settlement . ?a property:capital_of ?l } UNION { ?a property:capital_of ?l . ?l rdf:type ontology:state . ?a rdf:type ontology:type_of_french_administrative_division } } GROUP BY ?l } . FILTER ( ?n = ?f ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q541455
P85
Q7725634 Q484692 Q7275
USER
Which states have an anthem named lesser number of literary works and hymns than Anglo-Egyptian Sudan ?
(c(Q7275),P85,c(Q7725634)|c(Q484692))
action less
action union
action find_tuple_counts
relation P85
type Q7275
type Q7725634
action find_tuple_counts
relation P85
type Q7275
type Q484692
action count
action filter_multi_types
action find
entity Q541455
relation P85
type Q7725634
type Q484692
[{'concept': 'Q7275'}, 'P85', [{'concept': 'Q7725634'}, {'concept': 'Q484692'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?o ) AS ?x ) WHERE { { ?d property:P85 ?o . ?d rdf:type ontology:Q7275 . ?o rdf:type ontology:Q7725634 } UNION { ?d rdf:type ontology:Q7275 . ?o rdf:type ontology:Q484692 . ?d property:P85 ?o } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?p ) WHERE { resource:Q541455 property:P85 ?t . { { ?t rdf:type ontology:Q484692 } UNION { ?t rdf:type ontology:Q7725634 } } } } . FILTER ( ?x < ?p ) }
Anglo-Egyptian Sudan
action less
action union
action find_tuple_counts
relation anthem
type state
type literary work
action find_tuple_counts
relation anthem
type state
type hymn
action count
action filter_multi_types
action find
entity Anglo-Egyptian Sudan
relation anthem
type literary work
type hymn
[{'concept': 'state'}, 'anthem', [{'concept': 'literary work'}, {'concept': 'hymn'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?o ) AS ?x ) WHERE { { ?d property:anthem ?o . ?d rdf:type ontology:state . ?o rdf:type ontology:literary_work } UNION { ?d rdf:type ontology:state . ?o rdf:type ontology:hymn . ?d property:anthem ?o } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?p ) WHERE { resource:Anglo-Egyptian_Sudan property:anthem ?t . { { ?t rdf:type ontology:hymn } UNION { ?t rdf:type ontology:literary_work } } } } . FILTER ( ?x < ?p ) }
[]
literary work hymn state
Q210036 Q4843701 Q70802
SYSTEM
Chechen Republic of Ichkeria, Libyan Arab Jamahiriya, French Third Republic
Q70802 Q842931 Q210036 Q797214 Q4843701 Q58296 Q837136 Q769782 Q13131807
(c(Q7275),P85,c(Q7725634)|c(Q484692))
action less
action union
action find_tuple_counts
relation P85
type Q7275
type Q7725634
action find_tuple_counts
relation P85
type Q7275
type Q484692
action count
action filter_multi_types
action find
entity Q541455
relation P85
type Q7725634
type Q484692
[ANSWERS] have an anthem named lesser number of literary works and hymns than Anglo-Egyptian Sudan
[{'concept': 'Q7275'}, 'P85', [{'concept': 'Q7725634'}, {'concept': 'Q484692'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?o ) AS ?x ) WHERE { { ?d property:P85 ?o . ?d rdf:type ontology:Q7275 . ?o rdf:type ontology:Q7725634 } UNION { ?d rdf:type ontology:Q7275 . ?o rdf:type ontology:Q484692 . ?d property:P85 ?o } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?p ) WHERE { resource:Q541455 property:P85 ?t . { { ?t rdf:type ontology:Q484692 } UNION { ?t rdf:type ontology:Q7725634 } } } } . FILTER ( ?x < ?p ) }
French Third Republic East Pakistan Chechen Republic of Ichkeria French Togoland Libyan Arab Jamahiriya French Republic Kingdom of Deheubarth Kingdom of Powys Kindom of Morgannwg
Chechen Republic of Ichkeria, Libyan Arab Jamahiriya and French Third Republic have an anthem named lesser number of literary works and hymns than Anglo-Egyptian Sudan
Chechen Republic of Ichkeria Libyan Arab Jamahiriya French Third Republic
action less
action union
action find_tuple_counts
relation anthem
type state
type literary work
action find_tuple_counts
relation anthem
type state
type hymn
action count
action filter_multi_types
action find
entity Anglo-Egyptian Sudan
relation anthem
type literary work
type hymn
[{'concept': 'state'}, 'anthem', [{'concept': 'literary work'}, {'concept': 'hymn'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?o ) AS ?x ) WHERE { { ?d property:anthem ?o . ?d rdf:type ontology:state . ?o rdf:type ontology:literary_work } UNION { ?d rdf:type ontology:state . ?o rdf:type ontology:hymn . ?d property:anthem ?o } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?p ) WHERE { resource:Anglo-Egyptian_Sudan property:anthem ?t . { { ?t rdf:type ontology:hymn } UNION { ?t rdf:type ontology:literary_work } } } } . FILTER ( ?x < ?p ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q207272
P85
Q7725634 Q484692 Q7275
USER
And how about Second Polish Republic?
(c(Q7275),P85,c(Q7725634)|c(Q484692))
action less
action union
action find_tuple_counts
relation P85
type Q7275
type Q7725634
action find_tuple_counts
relation P85
type Q7275
type Q484692
action count
action filter_multi_types
action find
entity Q207272
relation P85
type Q7725634
type Q484692
[{'concept': 'Q7275'}, 'P85', [{'concept': 'Q7725634'}, {'concept': 'Q484692'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?q ) AS ?a ) WHERE { ?q rdf:type ?g . VALUES ( ?g ) { ( ontology:Q484692 ) ( ontology:Q7725634 ) } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?k ) WHERE { resource:Q207272 property:P85 ?r . { VALUES ( ?p ) { ( ontology:Q7725634 ) ( ontology:Q484692 ) } . ?r rdf:type ?p } } } . FILTER ( ?a < ?k ) }
Second Polish Republic
action less
action union
action find_tuple_counts
relation anthem
type state
type literary work
action find_tuple_counts
relation anthem
type state
type hymn
action count
action filter_multi_types
action find
entity Second Polish Republic
relation anthem
type literary work
type hymn
[{'concept': 'state'}, 'anthem', [{'concept': 'literary work'}, {'concept': 'hymn'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?q ) AS ?a ) WHERE { ?q rdf:type ?g . VALUES ( ?g ) { ( ontology:hymn ) ( ontology:literary_work ) } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?k ) WHERE { resource:Second_Polish_Republic property:anthem ?r . { VALUES ( ?p ) { ( ontology:literary_work ) ( ontology:hymn ) } . ?r rdf:type ?p } } } . FILTER ( ?a < ?k ) }
[]
literary work hymn state
Q210036 Q4843701 Q70802
SYSTEM
Chechen Republic of Ichkeria, Libyan Arab Jamahiriya, French Third Republic
Q70802 Q842931 Q210036 Q797214 Q4843701 Q58296 Q837136 Q769782 Q13131807
(c(Q7275),P85,c(Q7725634)|c(Q484692))
action less
action union
action find_tuple_counts
relation P85
type Q7275
type Q7725634
action find_tuple_counts
relation P85
type Q7275
type Q484692
action count
action filter_multi_types
action find
entity Q207272
relation P85
type Q7725634
type Q484692
[ANSWERS]
[{'concept': 'Q7275'}, 'P85', [{'concept': 'Q7725634'}, {'concept': 'Q484692'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?q ) AS ?a ) WHERE { ?q rdf:type ?g . VALUES ( ?g ) { ( ontology:Q484692 ) ( ontology:Q7725634 ) } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?k ) WHERE { resource:Q207272 property:P85 ?r . { VALUES ( ?p ) { ( ontology:Q7725634 ) ( ontology:Q484692 ) } . ?r rdf:type ?p } } } . FILTER ( ?a < ?k ) }
French Third Republic East Pakistan Chechen Republic of Ichkeria French Togoland Libyan Arab Jamahiriya French Republic Kingdom of Deheubarth Kingdom of Powys Kindom of Morgannwg
Chechen Republic of Ichkeria Libyan Arab Jamahiriya French Third Republic
action less
action union
action find_tuple_counts
relation anthem
type state
type literary work
action find_tuple_counts
relation anthem
type state
type hymn
action count
action filter_multi_types
action find
entity Second Polish Republic
relation anthem
type literary work
type hymn
[{'concept': 'state'}, 'anthem', [{'concept': 'literary work'}, {'concept': 'hymn'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?q ) AS ?a ) WHERE { ?q rdf:type ?g . VALUES ( ?g ) { ( ontology:hymn ) ( ontology:literary_work ) } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?k ) WHERE { resource:Second_Polish_Republic property:anthem ?r . { VALUES ( ?p ) { ( ontology:literary_work ) ( ontology:hymn ) } . ?r rdf:type ?p } } } . FILTER ( ?a < ?k ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16957
P47
Q15617994
USER
Which administrative territory is adjacent to East Germany ?
(Q16957,P47,c(Q15617994))
action filter_type
action find
entity Q16957
relation P47
type Q15617994
['Q16957', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q16957 property:P47 ?p . ?p rdf:type ontology:Q15617994 }
East Germany
action filter_type
action find
entity East Germany
relation shares border with
type designation for an administrative territorial entity
['East Germany', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:East_Germany property:shares_border_with ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q36
SYSTEM
Poland
Q36
(Q16957,P47,c(Q15617994))
action filter_type
action find
entity Q16957
relation P47
type Q15617994
The [ANSWER] is adjacent to East Germany
['Q16957', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q16957 property:P47 ?p . ?p rdf:type ontology:Q15617994 }
Poland
The Poland is adjacent to East Germany
Poland
action filter_type
action find
entity East Germany
relation shares border with
type designation for an administrative territorial entity
['East Germany', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:East_Germany property:shares_border_with ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]