Simple Question (Direct)
Simple Question
Q7147524
P54
Q1194951
USER
Which national sports team is Patrick Reichelt a member of ?
(Q7147524,P54,c(Q1194951))
action filter_type
action find
entity Q7147524
relation P54
type Q1194951
['Q7147524', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?q WHERE { resource:Q7147524 property:P54 ?q . ?q rdf:type ontology:Q1194951 }
Patrick Reichelt
action filter_type
action find
entity Patrick Reichelt
relation member of sports team
type national sports team
['Patrick Reichelt', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?q WHERE { resource:Patrick_Reichelt property:member_of_sports_team ?q . ?q rdf:type ontology:national_sports_team }
[]
national sports team
Q219854
SYSTEM
Philippines national football team
Q219854
(Q7147524,P54,c(Q1194951))
action filter_type
action find
entity Q7147524
relation P54
type Q1194951
The [ANSWER] is Patrick Reichelt a member of
['Q7147524', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?q WHERE { resource:Q7147524 property:P54 ?q . ?q rdf:type ontology:Q1194951 }
Philippines national football team
The Philippines national football team is Patrick Reichelt a member of
Philippines national football team
action filter_type
action find
entity Patrick Reichelt
relation member of sports team
type national sports team
['Patrick Reichelt', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?q WHERE { resource:Patrick_Reichelt property:member_of_sports_team ?q . ?q rdf:type ontology:national_sports_team }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7147524
P27
Q15617994
USER
Which administrative territory is that person a civilian of ?
(Q219854,P27,c(Q15617994))
action filter_type
action find
entity Q7147524
relation P27
type Q15617994
['Q219854', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q7147524 property:P27 ?h . ?h rdf:type ontology:Q15617994 }
Patrick Reichelt
action filter_type
action find
entity Patrick Reichelt
relation country of citizenship
type designation for an administrative territorial entity
['Philippines national football team', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Patrick_Reichelt property:country_of_citizenship ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q928
SYSTEM
Philippines
Q928
(Q219854,P27,c(Q15617994))
action filter_type
action find
entity Q7147524
relation P27
type Q15617994
The [ANSWER] is that person a civilian of
['Q219854', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { resource:Q7147524 property:P27 ?h . ?h rdf:type ontology:Q15617994 }
Philippines
The Philippines is that person a civilian of
Philippines
action filter_type
action find
entity Patrick Reichelt
relation country of citizenship
type designation for an administrative territorial entity
['Philippines national football team', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Patrick_Reichelt property:country_of_citizenship ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q928 Q4153859 Q16
P530
Q1048835
USER
Is that administrative territory known to have diplomatic connections with Davydivka and Canada ?
(Q928,P530,Q4153859) (Q928,P530,Q16)
action is_in
entity Q928
action intersection
action find_reverse
entity Q4153859
relation P530
action find_reverse
entity Q16
relation P530
['Q928', 'P530', 'Q4153859'] ['Q928', 'P530', 'Q16']
ASK WHERE { resource:Q928 property:P530 resource:Q16 . resource:Q928 property:P530 resource:Q4153859 }
Philippines Davydivka Canada
action is_in
entity Philippines
action intersection
action find_reverse
entity Davydivka
relation diplomatic relation
action find_reverse
entity Canada
relation diplomatic relation
['Philippines', 'diplomatic relation', 'Davydivka'] ['Philippines', 'diplomatic relation', 'Canada']
ASK WHERE { resource:Philippines property:diplomatic_relation resource:Canada . resource:Philippines property:diplomatic_relation resource:Davydivka }
[]
political territorial entity
SYSTEM
NO and YES respectively
(Q928,P530,Q4153859) (Q928,P530,Q16)
action is_in
entity Q928
action intersection
action find_reverse
entity Q4153859
relation P530
action find_reverse
entity Q16
relation P530
[ANSWER]
['Q928', 'P530', 'Q4153859'] ['Q928', 'P530', 'Q16']
ASK WHERE { resource:Q928 property:P530 resource:Q16 . resource:Q928 property:P530 resource:Q4153859 }
NO and YES respectively
action is_in
entity Philippines
action intersection
action find_reverse
entity Davydivka
relation diplomatic relation
action find_reverse
entity Canada
relation diplomatic relation
['Philippines', 'diplomatic relation', 'Davydivka'] ['Philippines', 'diplomatic relation', 'Canada']
ASK WHERE { resource:Philippines property:diplomatic_relation resource:Canada . resource:Philippines property:diplomatic_relation resource:Davydivka }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q7147524 Q64
P19
Q56061
USER
Is Berlin the birthplace of that person ?
(Q7147524,P19,Q64)
action is_in
entity Q64
action find
entity Q7147524
relation P19
['Q7147524', 'P19', 'Q64']
ASK WHERE { resource:Q7147524 property:P19 resource:Q64 }
Patrick Reichelt Berlin
action is_in
entity Berlin
action find
entity Patrick Reichelt
relation place of birth
['Patrick Reichelt', 'place of birth', 'Berlin']
ASK WHERE { resource:Patrick_Reichelt property:place_of_birth resource:Berlin }
[]
administrative territorial entity
SYSTEM
YES
(Q7147524,P19,Q64)
action is_in
entity Q64
action find
entity Q7147524
relation P19
[ANSWER]
['Q7147524', 'P19', 'Q64']
ASK WHERE { resource:Q7147524 property:P19 resource:Q64 }
Yes
action is_in
entity Berlin
action find
entity Patrick Reichelt
relation place of birth
['Patrick Reichelt', 'place of birth', 'Berlin']
ASK WHERE { resource:Patrick_Reichelt property:place_of_birth resource:Berlin }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q92432 Q7147524
P19 P937
Q56061
USER
Which administrative territories were Patrick Reichelt born in and are the locations where Kurt Rosenfeld worked ?
AND((Q7147524,P19,c(Q56061)), (Q92432,P937,c(Q56061)))
action filter_type
action intersection
action find
entity Q7147524
relation P19
action find
entity Q92432
relation P937
type Q56061
{'AND': [['Q7147524', 'P19', {'concept': 'Q56061'}], ['Q92432', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q56061 . resource:Q7147524 property:P19 ?r . resource:Q92432 property:P937 ?r }
Kurt Rosenfeld Patrick Reichelt
action filter_type
action intersection
action find
entity Patrick Reichelt
relation place of birth
action find
entity Kurt Rosenfeld
relation work location
type administrative territorial entity
{'AND': [['Patrick Reichelt', 'place of birth', {'concept': 'administrative territorial entity'}], ['Kurt Rosenfeld', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:administrative_territorial_entity . resource:Patrick_Reichelt property:place_of_birth ?r . resource:Kurt_Rosenfeld property:work_location ?r }
[]
administrative territorial entity
Q64
SYSTEM
Berlin
Q64
AND((Q7147524,P19,c(Q56061)), (Q92432,P937,c(Q56061)))
action filter_type
action intersection
action find
entity Q7147524
relation P19
action find
entity Q92432
relation P937
type Q56061
Patrick Reichelt were born in [ANSWER] and are the locations where Kurt Rosenfeld worked
{'AND': [['Q7147524', 'P19', {'concept': 'Q56061'}], ['Q92432', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q56061 . resource:Q7147524 property:P19 ?r . resource:Q92432 property:P937 ?r }
Berlin
Patrick Reichelt were born in Berlin and are the locations where Kurt Rosenfeld worked
Berlin
action filter_type
action intersection
action find
entity Patrick Reichelt
relation place of birth
action find
entity Kurt Rosenfeld
relation work location
type administrative territorial entity
{'AND': [['Patrick Reichelt', 'place of birth', {'concept': 'administrative territorial entity'}], ['Kurt Rosenfeld', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:administrative_territorial_entity . resource:Patrick_Reichelt property:place_of_birth ?r . resource:Kurt_Rosenfeld property:work_location ?r }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q64 Q69232 Q7347958
P6
Q502895
USER
Does Berlin have Walther Schreiber and Robert Nash as its head of government ?
(Q64,P6,Q69232) (Q64,P6,Q7347958)
action is_in
entity Q64
action intersection
action find_reverse
entity Q69232
relation P6
action find_reverse
entity Q7347958
relation P6
['Q64', 'P6', 'Q69232'] ['Q64', 'P6', 'Q7347958']
ASK WHERE { resource:Q64 property:P6 resource:Q69232 . resource:Q64 property:P6 resource:Q7347958 }
Berlin Walther Schreiber Robert Nash
action is_in
entity Berlin
action intersection
action find_reverse
entity Walther Schreiber
relation head of government
action find_reverse
entity Robert Nash
relation head of government
['Berlin', 'head of government', 'Walther Schreiber'] ['Berlin', 'head of government', 'Robert Nash']
ASK WHERE { resource:Berlin property:head_of_government resource:Walther_Schreiber . resource:Berlin property:head_of_government resource:Robert_Nash }
[]
common name
SYSTEM
YES and NO respectively
(Q64,P6,Q69232) (Q64,P6,Q7347958)
action is_in
entity Q64
action intersection
action find_reverse
entity Q69232
relation P6
action find_reverse
entity Q7347958
relation P6
[ANSWER]
['Q64', 'P6', 'Q69232'] ['Q64', 'P6', 'Q7347958']
ASK WHERE { resource:Q64 property:P6 resource:Q69232 . resource:Q64 property:P6 resource:Q7347958 }
YES and NO respectively
action is_in
entity Berlin
action intersection
action find_reverse
entity Walther Schreiber
relation head of government
action find_reverse
entity Robert Nash
relation head of government
['Berlin', 'head of government', 'Walther Schreiber'] ['Berlin', 'head of government', 'Robert Nash']
ASK WHERE { resource:Berlin property:head_of_government resource:Walther_Schreiber . resource:Berlin property:head_of_government resource:Robert_Nash }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q64 Q16898543
P69
Q502895
USER
How many people are an alumni of Berlin or Câmpulung Moldovenesc ?
(c(Q502895),P69,Q64) (c(Q502895),P69,Q16898543)
action count
action union
action filter_type
action find_reverse
entity Q64
relation P69
type Q502895
action filter_type
action find_reverse
entity Q16898543
relation P69
type Q502895
[{'concept': 'Q502895'}, 'P69', 'Q64'] [{'concept': 'Q502895'}, 'P69', 'Q16898543']
SELECT DISTINCT ( COUNT ( ?w ) AS ?h ) WHERE { { ?w rdf:type ontology:Q502895 . ?w property:P69 resource:Q64 } UNION { ?w property:P69 resource:Q16898543 . ?w rdf:type ontology:Q502895 } }
Berlin Câmpulung Moldovenesc
action count
action union
action filter_type
action find_reverse
entity Berlin
relation educated at
type common name
action filter_type
action find_reverse
entity Câmpulung Moldovenesc
relation educated at
type common name
[{'concept': 'common name'}, 'educated at', 'Berlin'] [{'concept': 'common name'}, 'educated at', 'Câmpulung Moldovenesc']
SELECT DISTINCT ( COUNT ( ?w ) AS ?h ) WHERE { { ?w rdf:type ontology:common_name . ?w property:educated_at resource:Berlin } UNION { ?w property:educated_at resource:Câmpulung_Moldovenesc . ?w rdf:type ontology:common_name } }
[]
common name
SYSTEM
3
Q75503 Q26700719 Q96597
(c(Q502895),P69,Q64) (c(Q502895),P69,Q16898543)
action count
action union
action filter_type
action find_reverse
entity Q64
relation P69
type Q502895
action filter_type
action find_reverse
entity Q16898543
relation P69
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P69', 'Q64'] [{'concept': 'Q502895'}, 'P69', 'Q16898543']
SELECT DISTINCT ( COUNT ( ?w ) AS ?h ) WHERE { { ?w rdf:type ontology:Q502895 . ?w property:P69 resource:Q64 } UNION { ?w property:P69 resource:Q16898543 . ?w rdf:type ontology:Q502895 } }
Moritz Schiff Adrian Ursache Elisabeth Rotten
3
action count
action union
action filter_type
action find_reverse
entity Berlin
relation educated at
type common name
action filter_type
action find_reverse
entity Câmpulung Moldovenesc
relation educated at
type common name
[{'concept': 'common name'}, 'educated at', 'Berlin'] [{'concept': 'common name'}, 'educated at', 'Câmpulung Moldovenesc']
SELECT DISTINCT ( COUNT ( ?w ) AS ?h ) WHERE { { ?w rdf:type ontology:common_name . ?w property:educated_at resource:Berlin } UNION { ?w property:educated_at resource:Câmpulung_Moldovenesc . ?w rdf:type ontology:common_name } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q64
P47
Q15617994
USER
Which administrative territories have an adjacent border with that administrative territory ?
action filter_type
action find
entity Q64
relation P47
type Q15617994
SELECT DISTINCT ?g WHERE { resource:Q64 property:P47 ?g . ?g rdf:type ontology:Q15617994 }
Berlin
action filter_type
action find
entity Berlin
relation shares border with
type designation for an administrative territorial entity
SELECT DISTINCT ?g WHERE { resource:Berlin property:shares_border_with ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q640426 Q104192
SYSTEM
Stahnsdorf, Kleinmachnow
Q640426 Q104192
action filter_type
action find
entity Q64
relation P47
type Q15617994
[ANSWERS] have an adjacent border with that administrative territory
SELECT DISTINCT ?g WHERE { resource:Q64 property:P47 ?g . ?g rdf:type ontology:Q15617994 }
Stahnsdorf Kleinmachnow
Stahnsdorf and Kleinmachnow have an adjacent border with that administrative territory
Stahnsdorf Kleinmachnow
action filter_type
action find
entity Berlin
relation shares border with
type designation for an administrative territorial entity
SELECT DISTINCT ?g WHERE { resource:Berlin property:shares_border_with ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q64
P190
Q56061 Q515
USER
How many administrative territories and cities are partner towns of Berlin ?
(Q64,P190,c(Q56061)) (Q64,P190,c(Q515))
action count
action union
action filter_type
action find
entity Q64
relation P190
type Q56061
action filter_type
action find
entity Q64
relation P190
type Q515
['Q64', 'P190', {'concept': 'Q56061'}] ['Q64', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?a ) WHERE { { resource:Q64 property:P190 ?k . ?k rdf:type ontology:Q515 } UNION { ?k rdf:type ontology:Q56061 . resource:Q64 property:P190 ?k } }
Berlin
action count
action union
action filter_type
action find
entity Berlin
relation sister city
type administrative territorial entity
action filter_type
action find
entity Berlin
relation sister city
type city
['Berlin', 'sister city', {'concept': 'administrative territorial entity'}] ['Berlin', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?a ) WHERE { { resource:Berlin property:sister_city ?k . ?k rdf:type ontology:city } UNION { ?k rdf:type ontology:administrative_territorial_entity . resource:Berlin property:sister_city ?k } }
[]
administrative territorial entity city
SYSTEM
15 administrative territories and 3 cities
Q269 Q84 Q3630 Q270 Q9005 Q649 Q239 Q3935 Q90 Q2807 Q956 Q1781 Q1489 Q1486 Q1490 Q65 Q406 Q1085
(Q64,P190,c(Q56061)) (Q64,P190,c(Q515))
action count
action union
action filter_type
action find
entity Q64
relation P190
type Q56061
action filter_type
action find
entity Q64
relation P190
type Q515
[ANSWER]
['Q64', 'P190', {'concept': 'Q56061'}] ['Q64', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?a ) WHERE { { resource:Q64 property:P190 ?k . ?k rdf:type ontology:Q515 } UNION { ?k rdf:type ontology:Q56061 . resource:Q64 property:P190 ?k } }
Tashkent London Jakarta Warsaw Brussels Moscow Brussels Windhoek Paris Madrid Beijing Budapest Mexico City Buenos Aires Tokyo Los Angeles Istanbul Prague
15 administrative territories and 3 cities
action count
action union
action filter_type
action find
entity Berlin
relation sister city
type administrative territorial entity
action filter_type
action find
entity Berlin
relation sister city
type city
['Berlin', 'sister city', {'concept': 'administrative territorial entity'}] ['Berlin', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?a ) WHERE { { resource:Berlin property:sister_city ?k . ?k rdf:type ontology:city } UNION { ?k rdf:type ontology:administrative_territorial_entity . resource:Berlin property:sister_city ?k } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories are known to have diplomatic connections with around 38 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 38
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?a ) AS ?c ) WHERE { ?d property:P530 ?a . ?d rdf:type ontology:Q1048835 . ?a rdf:type ontology:Q15617994 } GROUP BY ?d } . FILTER ( ?c = 38 ) }
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 38
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?a ) AS ?c ) WHERE { ?d property:diplomatic_relation ?a . ?d rdf:type ontology:political_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?d } . FILTER ( ?c = 38 ) }
[]
designation for an administrative territorial entity political territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 38
[ANSWERS] are known to have diplomatic connections with around 38 administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?a ) AS ?c ) WHERE { ?d property:P530 ?a . ?d rdf:type ontology:Q1048835 . ?a rdf:type ontology:Q15617994 } GROUP BY ?d } . FILTER ( ?c = 38 ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark, Canada and Austria are known to have diplomatic connections with around 38 administrative territories
Denmark Canada Austria
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 38
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?a ) AS ?c ) WHERE { ?d property:diplomatic_relation ?a . ?d rdf:type ontology:political_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?d } . FILTER ( ?c = 38 ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q505026
P530
Q15617994
USER
Do Münchsteinach have tactful political relations with those political territories ?
(Q505026,P530,Q35) (Q505026,P530,Q16) (Q505026,P530,Q40)
action is_in
entity prev_answer
action find
entity Q505026
relation P530
['Q505026', 'P530', 'Q35'] ['Q505026', 'P530', 'Q16'] ['Q505026', 'P530', 'Q40']
ASK WHERE { resource:Q505026 property:P530 ?p . VALUES ( ?p ) { ( resource:Q1000 ) ( resource:Q40 ) ( resource:Q781 ) } }
Münchsteinach
action is_in
entity prev_answer
action find
entity Münchsteinach
relation diplomatic relation
['Münchsteinach', 'diplomatic relation', 'Denmark'] ['Münchsteinach', 'diplomatic relation', 'Canada'] ['Münchsteinach', 'diplomatic relation', 'Austria']
ASK WHERE { resource:Münchsteinach property:diplomatic_relation ?p . VALUES ( ?p ) { ( resource:Gabon ) ( resource:Austria ) ( resource:Antigua_and_Barbuda ) } }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q505026,P530,Q35) (Q505026,P530,Q16) (Q505026,P530,Q40)
action is_in
entity prev_answer
action find
entity Q505026
relation P530
[ANSWER]
['Q505026', 'P530', 'Q35'] ['Q505026', 'P530', 'Q16'] ['Q505026', 'P530', 'Q40']
ASK WHERE { resource:Q505026 property:P530 ?p . VALUES ( ?p ) { ( resource:Q1000 ) ( resource:Q40 ) ( resource:Q781 ) } }
No
action is_in
entity prev_answer
action find
entity Münchsteinach
relation diplomatic relation
['Münchsteinach', 'diplomatic relation', 'Denmark'] ['Münchsteinach', 'diplomatic relation', 'Canada'] ['Münchsteinach', 'diplomatic relation', 'Austria']
ASK WHERE { resource:Münchsteinach property:diplomatic_relation ?p . VALUES ( ?p ) { ( resource:Gabon ) ( resource:Austria ) ( resource:Antigua_and_Barbuda ) } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q18324521 Q7147524
P19
Q56061
USER
Which administrative territories were Patrick Reichelt or Auguste Louise of Württemberg-Oels born at ?
OR((Q7147524,P19,c(Q56061)), (Q18324521,P19,c(Q56061)))
action filter_type
action union
action find
entity Q7147524
relation P19
action find
entity Q18324521
relation P19
type Q56061
{'OR': [['Q7147524', 'P19', {'concept': 'Q56061'}], ['Q18324521', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q18324521 property:P19 ?j } UNION { resource:Q7147524 property:P19 ?j } } . ?j rdf:type ontology:Q56061 }
Auguste Louise of Württemberg-Oels Patrick Reichelt
action filter_type
action union
action find
entity Patrick Reichelt
relation place of birth
action find
entity Auguste Louise of Württemberg-Oels
relation place of birth
type administrative territorial entity
{'OR': [['Patrick Reichelt', 'place of birth', {'concept': 'administrative territorial entity'}], ['Auguste Louise of Württemberg-Oels', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Auguste_Louise_of_Württemberg-Oels property:place_of_birth ?j } UNION { resource:Patrick_Reichelt property:place_of_birth ?j } } . ?j rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q64 Q858130
SYSTEM
Berlin, Bierutów
Q64 Q858130
OR((Q7147524,P19,c(Q56061)), (Q18324521,P19,c(Q56061)))
action filter_type
action union
action find
entity Q7147524
relation P19
action find
entity Q18324521
relation P19
type Q56061
[ANSWERS] were Patrick Reichelt or Auguste Louise of Württemberg-Oels born at
{'OR': [['Q7147524', 'P19', {'concept': 'Q56061'}], ['Q18324521', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q18324521 property:P19 ?j } UNION { resource:Q7147524 property:P19 ?j } } . ?j rdf:type ontology:Q56061 }
Berlin Bierutów
Berlin and Bierutów were Patrick Reichelt or Auguste Louise of Württemberg-Oels born at
Berlin Bierutów
action filter_type
action union
action find
entity Patrick Reichelt
relation place of birth
action find
entity Auguste Louise of Württemberg-Oels
relation place of birth
type administrative territorial entity
{'OR': [['Patrick Reichelt', 'place of birth', {'concept': 'administrative territorial entity'}], ['Auguste Louise of Württemberg-Oels', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Auguste_Louise_of_Württemberg-Oels property:place_of_birth ?j } UNION { resource:Patrick_Reichelt property:place_of_birth ?j } } . ?j rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P180
Q56061 Q340169 Q1792379
USER
Which administrative territories are expressed in max number of medias and art genres ?
(c(Q340169)|c(Q1792379),P180,c(Q56061))
action argmax
action union
action find_reverse_tuple_counts
relation P180
type Q56061
type Q340169
action find_reverse_tuple_counts
relation P180
type Q56061
type Q1792379
[[{'concept': 'Q340169'}, {'concept': 'Q1792379'}], 'P180', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?y ) { SELECT DISTINCT ?j ( COUNT ( ?c ) AS ?o ) WHERE { { ?c property:P180 ?j . ?c rdf:type ontology:Q340169 . ?j rdf:type ontology:Q56061 } UNION { ?c property:P180 ?j . ?j rdf:type ontology:Q56061 . ?c rdf:type ontology:Q1792379 } } GROUP BY ?j } } . { SELECT DISTINCT ?d ( COUNT ( ?x ) AS ?i ) WHERE { ?x rdf:type ?s . VALUES ( ?s ) { ( ontology:Q340169 ) ( ontology:Q1792379 ) } } GROUP BY ?d } . FILTER ( ?i = ?y ) }
action argmax
action union
action find_reverse_tuple_counts
relation depicts
type administrative territorial entity
type media
action find_reverse_tuple_counts
relation depicts
type administrative territorial entity
type art genre
[[{'concept': 'media'}, {'concept': 'art genre'}], 'depicts', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?y ) { SELECT DISTINCT ?j ( COUNT ( ?c ) AS ?o ) WHERE { { ?c property:depicts ?j . ?c rdf:type ontology:media . ?j rdf:type ontology:administrative_territorial_entity } UNION { ?c property:depicts ?j . ?j rdf:type ontology:administrative_territorial_entity . ?c rdf:type ontology:art_genre } } GROUP BY ?j } } . { SELECT DISTINCT ?d ( COUNT ( ?x ) AS ?i ) WHERE { ?x rdf:type ?s . VALUES ( ?s ) { ( ontology:media ) ( ontology:art_genre ) } } GROUP BY ?d } . FILTER ( ?i = ?y ) }
[]
administrative territorial entity media art genre
Q220 Q90
SYSTEM
Rome, Paris
Q220 Q90
(c(Q340169)|c(Q1792379),P180,c(Q56061))
action argmax
action union
action find_reverse_tuple_counts
relation P180
type Q56061
type Q340169
action find_reverse_tuple_counts
relation P180
type Q56061
type Q1792379
[ANSWERS] are expressed in max number of medias and art genres
[[{'concept': 'Q340169'}, {'concept': 'Q1792379'}], 'P180', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?y ) { SELECT DISTINCT ?j ( COUNT ( ?c ) AS ?o ) WHERE { { ?c property:P180 ?j . ?c rdf:type ontology:Q340169 . ?j rdf:type ontology:Q56061 } UNION { ?c property:P180 ?j . ?j rdf:type ontology:Q56061 . ?c rdf:type ontology:Q1792379 } } GROUP BY ?j } } . { SELECT DISTINCT ?d ( COUNT ( ?x ) AS ?i ) WHERE { ?x rdf:type ?s . VALUES ( ?s ) { ( ontology:Q340169 ) ( ontology:Q1792379 ) } } GROUP BY ?d } . FILTER ( ?i = ?y ) }
Rome Paris
Rome and Paris are expressed in max number of medias and art genres
Rome Paris
action argmax
action union
action find_reverse_tuple_counts
relation depicts
type administrative territorial entity
type media
action find_reverse_tuple_counts
relation depicts
type administrative territorial entity
type art genre
[[{'concept': 'media'}, {'concept': 'art genre'}], 'depicts', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?y ) { SELECT DISTINCT ?j ( COUNT ( ?c ) AS ?o ) WHERE { { ?c property:depicts ?j . ?c rdf:type ontology:media . ?j rdf:type ontology:administrative_territorial_entity } UNION { ?c property:depicts ?j . ?j rdf:type ontology:administrative_territorial_entity . ?c rdf:type ontology:art_genre } } GROUP BY ?j } } . { SELECT DISTINCT ?d ( COUNT ( ?x ) AS ?i ) WHERE { ?x rdf:type ?s . VALUES ( ?s ) { ( ontology:media ) ( ontology:art_genre ) } } GROUP BY ?d } . FILTER ( ?i = ?y ) }
[]