Simple Question (Direct)
Simple Question
Q436710
P19
Q56061
USER
Where was Anna Hübler born ?
(Q436710,P19,c(Q56061))
action filter_type
action find
entity Q436710
relation P19
type Q56061
['Q436710', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { resource:Q436710 property:P19 ?b . ?b rdf:type ontology:Q56061 }
Anna Hübler
action filter_type
action find
entity Anna Hübler
relation place of birth
type administrative territorial entity
['Anna Hübler', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Anna_Hübler property:place_of_birth ?b . ?b rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1726
SYSTEM
Munich
Q1726
(Q436710,P19,c(Q56061))
action filter_type
action find
entity Q436710
relation P19
type Q56061
Anna Hübler was born in [ANSWER]
['Q436710', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { resource:Q436710 property:P19 ?b . ?b rdf:type ontology:Q56061 }
Munich
Anna Hübler was born in Munich
Munich
action filter_type
action find
entity Anna Hübler
relation place of birth
type administrative territorial entity
['Anna Hübler', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Anna_Hübler property:place_of_birth ?b . ?b rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q436710
P1344
Q16510064
USER
Which sporting event did that person participate in ?
(Q1726,P1344,c(Q16510064))
action filter_type
action find
entity Q436710
relation P1344
type Q16510064
['Q1726', 'P1344', {'concept': 'Q16510064'}]
SELECT DISTINCT ?d WHERE { resource:Q436710 property:P1344 ?d . ?d rdf:type ontology:Q16510064 }
Anna Hübler
action filter_type
action find
entity Anna Hübler
relation participant of
type sporting event
['Munich', 'participant of', {'concept': 'sporting event'}]
SELECT DISTINCT ?d WHERE { resource:Anna_Hübler property:participant_of ?d . ?d rdf:type ontology:sporting_event }
[]
sporting event
Q3295014
SYSTEM
Figure skating at the 1908 Summer Olympics – Pairs
Q3295014
(Q1726,P1344,c(Q16510064))
action filter_type
action find
entity Q436710
relation P1344
type Q16510064
That person participated in [ANSWER]
['Q1726', 'P1344', {'concept': 'Q16510064'}]
SELECT DISTINCT ?d WHERE { resource:Q436710 property:P1344 ?d . ?d rdf:type ontology:Q16510064 }
Figure skating at the 1908 Summer Olympics – Pairs
That person participated in Figure skating at the 1908 Summer Olympics – Pairs
Figure skating at the 1908 Summer Olympics – Pairs
action filter_type
action find
entity Anna Hübler
relation participant of
type sporting event
['Munich', 'participant of', {'concept': 'sporting event'}]
SELECT DISTINCT ?d WHERE { resource:Anna_Hübler property:participant_of ?d . ?d rdf:type ontology:sporting_event }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P115
Q811979 Q16510064
USER
How many architectural structures are the grounds of approximately 2 sporting events ?
(c(Q16510064),P115,c(Q811979))
action count
action approx
action find_reverse_tuple_counts
relation P115
type Q811979
type Q16510064
value 2
[{'concept': 'Q16510064'}, 'P115', {'concept': 'Q811979'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?c ) AS ?q ) WHERE { ?c property:P115 ?y . ?y rdf:type ontology:Q811979 . ?c rdf:type ontology:Q16510064 } GROUP BY ?y } . FILTER ( ?q = 2 ) }
action count
action approx
action find_reverse_tuple_counts
relation home venue
type architectural structure
type sporting event
value 2
[{'concept': 'sporting event'}, 'home venue', {'concept': 'architectural structure'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?c ) AS ?q ) WHERE { ?c property:home_venue ?y . ?y rdf:type ontology:architectural_structure . ?c rdf:type ontology:sporting_event } GROUP BY ?y } . FILTER ( ?q = 2 ) }
[]
architectural structure sporting event
SYSTEM
3
Q7089085 Q24255536 Q7089149
(c(Q16510064),P115,c(Q811979))
action count
action approx
action find_reverse_tuple_counts
relation P115
type Q811979
type Q16510064
value 2
[ANSWER]
[{'concept': 'Q16510064'}, 'P115', {'concept': 'Q811979'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?c ) AS ?q ) WHERE { ?c property:P115 ?y . ?y rdf:type ontology:Q811979 . ?c rdf:type ontology:Q16510064 } GROUP BY ?y } . FILTER ( ?q = 2 ) }
Olympic Hockey Center Future Arena Carioca Arena 1
3
action count
action approx
action find_reverse_tuple_counts
relation home venue
type architectural structure
type sporting event
value 2
[{'concept': 'sporting event'}, 'home venue', {'concept': 'architectural structure'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?c ) AS ?q ) WHERE { ?c property:home_venue ?y . ?y rdf:type ontology:architectural_structure . ?c rdf:type ontology:sporting_event } GROUP BY ?y } . FILTER ( ?q = 2 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1726
P17
Q1048835 Q3024240
USER
How many political territories and former countries do Munich belong to ?
(Q1726,P17,c(Q1048835)) (Q1726,P17,c(Q3024240))
action count
action union
action filter_type
action find
entity Q1726
relation P17
type Q1048835
action filter_type
action find
entity Q1726
relation P17
type Q3024240
['Q1726', 'P17', {'concept': 'Q1048835'}] ['Q1726', 'P17', {'concept': 'Q3024240'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) WHERE { VALUES ( ?h ) { ( ontology:Q1048835 ) ( ontology:Q3024240 ) } . ?v rdf:type ?h }
Munich
action count
action union
action filter_type
action find
entity Munich
relation country
type political territorial entity
action filter_type
action find
entity Munich
relation country
type former country
['Munich', 'country', {'concept': 'political territorial entity'}] ['Munich', 'country', {'concept': 'former country'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) WHERE { VALUES ( ?h ) { ( ontology:political_territorial_entity ) ( ontology:former_country ) } . ?v rdf:type ?h }
[]
political territorial entity former country
SYSTEM
1 political territories and 1 former countries
Q43287 Q183
(Q1726,P17,c(Q1048835)) (Q1726,P17,c(Q3024240))
action count
action union
action filter_type
action find
entity Q1726
relation P17
type Q1048835
action filter_type
action find
entity Q1726
relation P17
type Q3024240
[ANSWER]
['Q1726', 'P17', {'concept': 'Q1048835'}] ['Q1726', 'P17', {'concept': 'Q3024240'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) WHERE { VALUES ( ?h ) { ( ontology:Q1048835 ) ( ontology:Q3024240 ) } . ?v rdf:type ?h }
German Empire Germany
1 political territories and 1 former countries
action count
action union
action filter_type
action find
entity Munich
relation country
type political territorial entity
action filter_type
action find
entity Munich
relation country
type former country
['Munich', 'country', {'concept': 'political territorial entity'}] ['Munich', 'country', {'concept': 'former country'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) WHERE { VALUES ( ?h ) { ( ontology:political_territorial_entity ) ( ontology:former_country ) } . ?v rdf:type ?h }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q4444735 Q436710
P27
Q1048835
USER
Which political territories are Anna Hübler or Raynaldo Sturrup a civilian of ?
OR((Q436710,P27,c(Q1048835)), (Q4444735,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q436710
relation P27
action find
entity Q4444735
relation P27
type Q1048835
{'OR': [['Q436710', 'P27', {'concept': 'Q1048835'}], ['Q4444735', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?a WHERE { { ?t property:P27 ?a . VALUES ( ?t ) { ( resource:Q436710 ) ( resource:Q4444735 ) } } . ?a rdf:type ontology:Q1048835 }
Raynaldo Sturrup Anna Hübler
action filter_type
action union
action find
entity Anna Hübler
relation country of citizenship
action find
entity Raynaldo Sturrup
relation country of citizenship
type political territorial entity
{'OR': [['Anna Hübler', 'country of citizenship', {'concept': 'political territorial entity'}], ['Raynaldo Sturrup', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { ?t property:country_of_citizenship ?a . VALUES ( ?t ) { ( resource:Anna_Hübler ) ( resource:Raynaldo_Sturrup ) } } . ?a rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183 Q778
SYSTEM
Germany, The Bahamas
Q183 Q778
OR((Q436710,P27,c(Q1048835)), (Q4444735,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q436710
relation P27
action find
entity Q4444735
relation P27
type Q1048835
[ANSWERS] are Anna Hübler or Raynaldo Sturrup a civilian of
{'OR': [['Q436710', 'P27', {'concept': 'Q1048835'}], ['Q4444735', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?a WHERE { { ?t property:P27 ?a . VALUES ( ?t ) { ( resource:Q436710 ) ( resource:Q4444735 ) } } . ?a rdf:type ontology:Q1048835 }
Germany The Bahamas
Germany and The Bahamas are Anna Hübler or Raynaldo Sturrup a civilian of
Germany The Bahamas
action filter_type
action union
action find
entity Anna Hübler
relation country of citizenship
action find
entity Raynaldo Sturrup
relation country of citizenship
type political territorial entity
{'OR': [['Anna Hübler', 'country of citizenship', {'concept': 'political territorial entity'}], ['Raynaldo Sturrup', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { ?t property:country_of_citizenship ?a . VALUES ( ?t ) { ( resource:Anna_Hübler ) ( resource:Raynaldo_Sturrup ) } } . ?a rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q183 Q778
P740
Q43229
USER
Which organizations originated at those political territories ?
(c(Q43229),P740,Q183) (c(Q43229),P740,Q778)
action filter_type
action find_reverse
entity prev_answer
relation P740
type Q43229
[{'concept': 'Q43229'}, 'P740', 'Q183'] [{'concept': 'Q43229'}, 'P740', 'Q778']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q43229 . VALUES ( ?t ) { ( resource:Q183 ) ( resource:Q778 ) } . ?r property:P740 ?t }
Germany The Bahamas
action filter_type
action find_reverse
entity prev_answer
relation location of formation
type organization
[{'concept': 'organization'}, 'location of formation', 'Germany'] [{'concept': 'organization'}, 'location of formation', 'The Bahamas']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:organization . VALUES ( ?t ) { ( resource:Germany ) ( resource:The_Bahamas ) } . ?r property:location_of_formation ?t }
[]
organization
Q300518 Q468381 Q7616372
SYSTEM
OBI, Avira, Stiefel Laboratories
Q300518 Q17077985 Q468381 Q7616372 Q877200 Q1809053 Q5706319 Q2743805 Q590539
(c(Q43229),P740,Q183) (c(Q43229),P740,Q778)
action filter_type
action find_reverse
entity prev_answer
relation P740
type Q43229
[ANSWERS] originated at those political territories
[{'concept': 'Q43229'}, 'P740', 'Q183'] [{'concept': 'Q43229'}, 'P740', 'Q778']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q43229 . VALUES ( ?t ) { ( resource:Q183 ) ( resource:Q778 ) } . ?r property:P740 ?t }
OBI Herpa Wings Avira Stiefel Laboratories Dual Lesiëm Helko Lavasoft Clonaid
OBI, Avira and Stiefel Laboratories originated at those political territories
OBI Avira Stiefel Laboratories
action filter_type
action find_reverse
entity prev_answer
relation location of formation
type organization
[{'concept': 'organization'}, 'location of formation', 'Germany'] [{'concept': 'organization'}, 'location of formation', 'The Bahamas']
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:organization . VALUES ( ?t ) { ( resource:Germany ) ( resource:The_Bahamas ) } . ?r property:location_of_formation ?t }
[]
Clarification
Simple Question|Single Entity|Indirect
Q300518
P127
Q43229
USER
Who is the owner of that one ?
(Q300518,P127,c(Q43229))
action filter_type
action find
entity Q300518
relation P127
type Q43229
['Q300518', 'P127', {'concept': 'Q43229'}]
SELECT DISTINCT ?z WHERE { resource:Q300518 property:P127 ?z . ?z rdf:type ontology:Q43229 }
OBI
action filter_type
action find
entity OBI
relation owned by
type organization
['OBI', 'owned by', {'concept': 'organization'}]
SELECT DISTINCT ?z WHERE { resource:OBI property:owned_by ?z . ?z rdf:type ontology:organization }
[]
organization
Clarification for simple ques.
Q7616372
SYSTEM
Did you mean Stiefel Laboratories ?
Q300518 Q468381 Q7616372
(Q300518,P127,c(Q43229)) (Q468381,P127,c(Q43229)) (Q7616372,P127,c(Q43229))
[ANSWER]
['Q300518', 'P127', {'concept': 'Q43229'}] ['Q468381', 'P127', {'concept': 'Q43229'}] ['Q7616372', 'P127', {'concept': 'Q43229'}]
SELECT DISTINCT ?z WHERE { resource:Q300518 property:P127 ?z . ?z rdf:type ontology:Q43229 }
OBI Avira Stiefel Laboratories
Did you mean Stiefel Laboratories ?
Stiefel Laboratories
['OBI', 'owned by', {'concept': 'organization'}] ['Avira', 'owned by', {'concept': 'organization'}] ['Stiefel Laboratories', 'owned by', {'concept': 'organization'}]
SELECT DISTINCT ?z WHERE { resource:OBI property:owned_by ?z . ?z rdf:type ontology:organization }
[]
Simple Question (Coreferenced)
USER
No, I meant OBI. Could you tell me the answer for that?
(Q300518,P127,c(Q43229))
Q300518
['Q300518', 'P127', {'concept': 'Q43229'}]
['OBI', 'owned by', {'concept': 'organization'}]
[]
Q832996
SYSTEM
Tengelmann Group
Q832996
(Q300518,P127,c(Q43229))
action filter_type
action find
entity Q300518
relation P127
type Q43229
The owner of that one is the [ANSWER]
['Q300518', 'P127', {'concept': 'Q43229'}]
SELECT DISTINCT ?z WHERE { resource:Q300518 property:P127 ?z . ?z rdf:type ontology:Q43229 }
Tengelmann Group
The owner of that one is the Tengelmann Group
Tengelmann Group
action filter_type
action find
entity OBI
relation owned by
type organization
['OBI', 'owned by', {'concept': 'organization'}]
SELECT DISTINCT ?z WHERE { resource:OBI property:owned_by ?z . ?z rdf:type ontology:organization }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q7378331
P115
Q811979 Q1076486 Q16510064
USER
How many sporting events have less number of architectural structures and sports venues as their home venue than rugby Sevens at the 2016 Summer Olympics ?
(c(Q16510064),P115,c(Q811979)|c(Q1076486))
action count
action less
action union
action find_tuple_counts
relation P115
type Q16510064
type Q811979
action find_tuple_counts
relation P115
type Q16510064
type Q1076486
action count
action filter_multi_types
action find
entity Q7378331
relation P115
type Q811979
type Q1076486
[{'concept': 'Q16510064'}, 'P115', [{'concept': 'Q811979'}, {'concept': 'Q1076486'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) ?i WHERE { { ?i property:P115 ?m . ?i rdf:type ontology:Q16510064 . ?m rdf:type ontology:Q811979 } UNION { ?i property:P115 ?m . ?i rdf:type ontology:Q16510064 . ?m rdf:type ontology:Q1076486 } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?r ) WHERE { resource:Q7378331 property:P115 ?g . { VALUES ( ?n ) { ( ontology:Q811979 ) ( ontology:Q1076486 ) } . ?g rdf:type ?n } } } . FILTER ( ?u < ?r ) }
rugby Sevens at the 2016 Summer Olympics
action count
action less
action union
action find_tuple_counts
relation home venue
type sporting event
type architectural structure
action find_tuple_counts
relation home venue
type sporting event
type sports venue
action count
action filter_multi_types
action find
entity rugby Sevens at the 2016 Summer Olympics
relation home venue
type architectural structure
type sports venue
[{'concept': 'sporting event'}, 'home venue', [{'concept': 'architectural structure'}, {'concept': 'sports venue'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) ?i WHERE { { ?i property:home_venue ?m . ?i rdf:type ontology:sporting_event . ?m rdf:type ontology:architectural_structure } UNION { ?i property:home_venue ?m . ?i rdf:type ontology:sporting_event . ?m rdf:type ontology:sports_venue } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?r ) WHERE { resource:rugby_Sevens_at_the_2016_Summer_Olympics property:home_venue ?g . { VALUES ( ?n ) { ( ontology:architectural_structure ) ( ontology:sports_venue ) } . ?g rdf:type ?n } } } . FILTER ( ?u < ?r ) }
[]
architectural structure sports venue sporting event
SYSTEM
2
Q16612104 Q18395725
(c(Q16510064),P115,c(Q811979)|c(Q1076486))
action count
action less
action union
action find_tuple_counts
relation P115
type Q16510064
type Q811979
action find_tuple_counts
relation P115
type Q16510064
type Q1076486
action count
action filter_multi_types
action find
entity Q7378331
relation P115
type Q811979
type Q1076486
[ANSWER]
[{'concept': 'Q16510064'}, 'P115', [{'concept': 'Q811979'}, {'concept': 'Q1076486'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) ?i WHERE { { ?i property:P115 ?m . ?i rdf:type ontology:Q16510064 . ?m rdf:type ontology:Q811979 } UNION { ?i property:P115 ?m . ?i rdf:type ontology:Q16510064 . ?m rdf:type ontology:Q1076486 } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?r ) WHERE { resource:Q7378331 property:P115 ?g . { VALUES ( ?n ) { ( ontology:Q811979 ) ( ontology:Q1076486 ) } . ?g rdf:type ?n } } } . FILTER ( ?u < ?r ) }
Volleyball at the 2016 Summer Olympics – Men's tournament Volleyball at the 2016 Summer Olympics – Women's tournament
2
action count
action less
action union
action find_tuple_counts
relation home venue
type sporting event
type architectural structure
action find_tuple_counts
relation home venue
type sporting event
type sports venue
action count
action filter_multi_types
action find
entity rugby Sevens at the 2016 Summer Olympics
relation home venue
type architectural structure
type sports venue
[{'concept': 'sporting event'}, 'home venue', [{'concept': 'architectural structure'}, {'concept': 'sports venue'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) ?i WHERE { { ?i property:home_venue ?m . ?i rdf:type ontology:sporting_event . ?m rdf:type ontology:architectural_structure } UNION { ?i property:home_venue ?m . ?i rdf:type ontology:sporting_event . ?m rdf:type ontology:sports_venue } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?r ) WHERE { resource:rugby_Sevens_at_the_2016_Summer_Olympics property:home_venue ?g . { VALUES ( ?n ) { ( ontology:architectural_structure ) ( ontology:sports_venue ) } . ?g rdf:type ?n } } } . FILTER ( ?u < ?r ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q23949488
P115
Q811979 Q1076486 Q16510064
USER
And what about Handball at the 2016 Summer Olympics – Men's tournament?
(c(Q16510064),P115,c(Q811979)|c(Q1076486))
action count
action less
action union
action find_tuple_counts
relation P115
type Q16510064
type Q811979
action find_tuple_counts
relation P115
type Q16510064
type Q1076486
action count
action filter_multi_types
action find
entity Q23949488
relation P115
type Q811979
type Q1076486
[{'concept': 'Q16510064'}, 'P115', [{'concept': 'Q811979'}, {'concept': 'Q1076486'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?l ) WHERE { FILTER ( ?w < ?h ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?h ) WHERE { resource:Q23949488 property:P115 ?p . { ?p rdf:type ?q . VALUES ( ?q ) { ( ontology:Q811979 ) ( ontology:Q1076486 ) } } } } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?w ) ?v WHERE { { ?v property:P115 ?d . ?d rdf:type ontology:Q1076486 . ?v rdf:type ontology:Q16510064 } UNION { ?v property:P115 ?d . ?v rdf:type ontology:Q16510064 . ?d rdf:type ontology:Q811979 } } GROUP BY ?v } }
Handball at the 2016 Summer Olympics – Men's tournament
action count
action less
action union
action find_tuple_counts
relation home venue
type sporting event
type architectural structure
action find_tuple_counts
relation home venue
type sporting event
type sports venue
action count
action filter_multi_types
action find
entity Handball at the 2016 Summer Olympics – Men's tournament
relation home venue
type architectural structure
type sports venue
[{'concept': 'sporting event'}, 'home venue', [{'concept': 'architectural structure'}, {'concept': 'sports venue'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?l ) WHERE { FILTER ( ?w < ?h ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?h ) WHERE { resource:Handball_at_the_2016_Summer_Olympics_–_Men's_tournament property:home_venue ?p . { ?p rdf:type ?q . VALUES ( ?q ) { ( ontology:architectural_structure ) ( ontology:sports_venue ) } } } } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?w ) ?v WHERE { { ?v property:home_venue ?d . ?d rdf:type ontology:sports_venue . ?v rdf:type ontology:sporting_event } UNION { ?v property:home_venue ?d . ?v rdf:type ontology:sporting_event . ?d rdf:type ontology:architectural_structure } } GROUP BY ?v } }
[]
architectural structure sports venue sporting event
SYSTEM
2
Q16612104 Q18395725
(c(Q16510064),P115,c(Q811979)|c(Q1076486))
action count
action less
action union
action find_tuple_counts
relation P115
type Q16510064
type Q811979
action find_tuple_counts
relation P115
type Q16510064
type Q1076486
action count
action filter_multi_types
action find
entity Q23949488
relation P115
type Q811979
type Q1076486
[ANSWER]
[{'concept': 'Q16510064'}, 'P115', [{'concept': 'Q811979'}, {'concept': 'Q1076486'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?l ) WHERE { FILTER ( ?w < ?h ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?h ) WHERE { resource:Q23949488 property:P115 ?p . { ?p rdf:type ?q . VALUES ( ?q ) { ( ontology:Q811979 ) ( ontology:Q1076486 ) } } } } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?w ) ?v WHERE { { ?v property:P115 ?d . ?d rdf:type ontology:Q1076486 . ?v rdf:type ontology:Q16510064 } UNION { ?v property:P115 ?d . ?v rdf:type ontology:Q16510064 . ?d rdf:type ontology:Q811979 } } GROUP BY ?v } }
Volleyball at the 2016 Summer Olympics – Men's tournament Volleyball at the 2016 Summer Olympics – Women's tournament
2
action count
action less
action union
action find_tuple_counts
relation home venue
type sporting event
type architectural structure
action find_tuple_counts
relation home venue
type sporting event
type sports venue
action count
action filter_multi_types
action find
entity Handball at the 2016 Summer Olympics – Men's tournament
relation home venue
type architectural structure
type sports venue
[{'concept': 'sporting event'}, 'home venue', [{'concept': 'architectural structure'}, {'concept': 'sports venue'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?l ) WHERE { FILTER ( ?w < ?h ) . { SELECT DISTINCT ( COUNT ( ?p ) AS ?h ) WHERE { resource:Handball_at_the_2016_Summer_Olympics_–_Men's_tournament property:home_venue ?p . { ?p rdf:type ?q . VALUES ( ?q ) { ( ontology:architectural_structure ) ( ontology:sports_venue ) } } } } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?w ) ?v WHERE { { ?v property:home_venue ?d . ?d rdf:type ontology:sports_venue . ?v rdf:type ontology:sporting_event } UNION { ?v property:home_venue ?d . ?v rdf:type ontology:sporting_event . ?d rdf:type ontology:architectural_structure } } GROUP BY ?v } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q6041 Q183
P47
Q1048835
USER
Which political territories share border with Germany or Wolfenbüttel ?
OR((Q183,P47,c(Q1048835)), (Q6041,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q183
relation P47
action find
entity Q6041
relation P47
type Q1048835
{'OR': [['Q183', 'P47', {'concept': 'Q1048835'}], ['Q6041', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?h WHERE { { ?v property:P47 ?h . VALUES ( ?v ) { ( resource:Q183 ) ( resource:Q6041 ) } } . ?h rdf:type ontology:Q1048835 }
Wolfenbüttel Germany
action filter_type
action union
action find
entity Germany
relation shares border with
action find
entity Wolfenbüttel
relation shares border with
type political territorial entity
{'OR': [['Germany', 'shares border with', {'concept': 'political territorial entity'}], ['Wolfenbüttel', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { ?v property:shares_border_with ?h . VALUES ( ?v ) { ( resource:Germany ) ( resource:Wolfenbüttel ) } } . ?h rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q40 Q6047 Q6040 Q6064 Q35 Q6087 Q5978
SYSTEM
Austria, Helmstedt, Goslar, Börde, Denmark, Harz, Hildesheim
Q40 Q6047 Q6040 Q6064 Q35 Q6087 Q5978
OR((Q183,P47,c(Q1048835)), (Q6041,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q183
relation P47
action find
entity Q6041
relation P47
type Q1048835
[ANSWERS] share border with Germany or Wolfenbüttel
{'OR': [['Q183', 'P47', {'concept': 'Q1048835'}], ['Q6041', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?h WHERE { { ?v property:P47 ?h . VALUES ( ?v ) { ( resource:Q183 ) ( resource:Q6041 ) } } . ?h rdf:type ontology:Q1048835 }
Austria Helmstedt Goslar Börde Denmark Harz Hildesheim
Austria, Helmstedt, Goslar, Börde, Denmark, Harz and Hildesheim share border with Germany or Wolfenbüttel
Austria Helmstedt Goslar Börde Denmark Harz Hildesheim
action filter_type
action union
action find
entity Germany
relation shares border with
action find
entity Wolfenbüttel
relation shares border with
type political territorial entity
{'OR': [['Germany', 'shares border with', {'concept': 'political territorial entity'}], ['Wolfenbüttel', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { ?v property:shares_border_with ?h . VALUES ( ?v ) { ( resource:Germany ) ( resource:Wolfenbüttel ) } } . ?h rdf:type ontology:political_territorial_entity }
[]