Simple Question (Direct)
Simple Question
Q21869733
P495
Q1048835
USER
What is the country of origin of The Priest from Kirchfeld ?
(Q21869733,P495,c(Q1048835))
action filter_type
action find
entity Q21869733
relation P495
type Q1048835
['Q21869733', 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q1048835 . resource:Q21869733 property:P495 ?r }
The Priest from Kirchfeld
action filter_type
action find
entity The Priest from Kirchfeld
relation country of origin
type political territorial entity
['The Priest from Kirchfeld', 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:political_territorial_entity . resource:The_Priest_from_Kirchfeld property:country_of_origin ?r }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q21869733,P495,c(Q1048835))
action filter_type
action find
entity Q21869733
relation P495
type Q1048835
The country of origin of The Priest from Kirchfeld is from [ANSWER]
['Q21869733', 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q1048835 . resource:Q21869733 property:P495 ?r }
Germany
The country of origin of The Priest from Kirchfeld is from Germany
Germany
action filter_type
action find
entity The Priest from Kirchfeld
relation country of origin
type political territorial entity
['The Priest from Kirchfeld', 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:political_territorial_entity . resource:The_Priest_from_Kirchfeld property:country_of_origin ?r }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q21869733
P161
Q502895
USER
Which people were casted in that work of art ?
(Q183,P161,c(Q502895))
action filter_type
action find
entity Q21869733
relation P161
type Q502895
['Q183', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { resource:Q21869733 property:P161 ?y . ?y rdf:type ontology:Q502895 }
The Priest from Kirchfeld
action filter_type
action find
entity The Priest from Kirchfeld
relation cast member
type common name
['Germany', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { resource:The_Priest_from_Kirchfeld property:cast_member ?y . ?y rdf:type ontology:common_name }
[]
common name
Q55413 Q85415 Q98363
SYSTEM
William Dieterle, Max Neufeld, Fritz Kampers
Q85415 Q1452435 Q98363 Q55413 Q111461
(Q183,P161,c(Q502895))
action filter_type
action find
entity Q21869733
relation P161
type Q502895
[ANSWERS] were casted in that work of art
['Q183', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { resource:Q21869733 property:P161 ?y . ?y rdf:type ontology:Q502895 }
Max Neufeld Margarete Lanner Fritz Kampers William Dieterle Hedwig Wangel
William Dieterle, Max Neufeld and Fritz Kampers were casted in that work of art
William Dieterle Max Neufeld Fritz Kampers
action filter_type
action find
entity The Priest from Kirchfeld
relation cast member
type common name
['Germany', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { resource:The_Priest_from_Kirchfeld property:cast_member ?y . ?y rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q21869733
P161
Q838948
USER
Do those people star in The Priest from Kirchfeld ?
(Q21869733,P161,Q55413) (Q21869733,P161,Q85415) (Q21869733,P161,Q98363)
action is_in
entity prev_answer
action find
entity Q21869733
relation P161
['Q21869733', 'P161', 'Q55413'] ['Q21869733', 'P161', 'Q85415'] ['Q21869733', 'P161', 'Q98363']
ASK WHERE { VALUES ( ?d ) { ( resource:Q85415 ) ( resource:Q1452435 ) ( resource:Q98363 ) } . resource:Q21869733 property:P161 ?d }
The Priest from Kirchfeld
action is_in
entity prev_answer
action find
entity The Priest from Kirchfeld
relation cast member
['The Priest from Kirchfeld', 'cast member', 'William Dieterle'] ['The Priest from Kirchfeld', 'cast member', 'Max Neufeld'] ['The Priest from Kirchfeld', 'cast member', 'Fritz Kampers']
ASK WHERE { VALUES ( ?d ) { ( resource:Max_Neufeld ) ( resource:Margarete_Lanner ) ( resource:Fritz_Kampers ) } . resource:The_Priest_from_Kirchfeld property:cast_member ?d }
[]
work of art
SYSTEM
YES
(Q21869733,P161,Q55413) (Q21869733,P161,Q85415) (Q21869733,P161,Q98363)
action is_in
entity prev_answer
action find
entity Q21869733
relation P161
[ANSWER]
['Q21869733', 'P161', 'Q55413'] ['Q21869733', 'P161', 'Q85415'] ['Q21869733', 'P161', 'Q98363']
ASK WHERE { VALUES ( ?d ) { ( resource:Q85415 ) ( resource:Q1452435 ) ( resource:Q98363 ) } . resource:Q21869733 property:P161 ?d }
Yes
action is_in
entity prev_answer
action find
entity The Priest from Kirchfeld
relation cast member
['The Priest from Kirchfeld', 'cast member', 'William Dieterle'] ['The Priest from Kirchfeld', 'cast member', 'Max Neufeld'] ['The Priest from Kirchfeld', 'cast member', 'Fritz Kampers']
ASK WHERE { VALUES ( ?d ) { ( resource:Max_Neufeld ) ( resource:Margarete_Lanner ) ( resource:Fritz_Kampers ) } . resource:The_Priest_from_Kirchfeld property:cast_member ?d }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q98363 Q1726
P19
Q56061
USER
Was Fritz Kampers born in Munich ?
(Q98363,P19,Q1726)
action is_in
entity Q1726
action find
entity Q98363
relation P19
['Q98363', 'P19', 'Q1726']
ASK WHERE { resource:Q98363 property:P19 resource:Q1726 }
Fritz Kampers Munich
action is_in
entity Munich
action find
entity Fritz Kampers
relation place of birth
['Fritz Kampers', 'place of birth', 'Munich']
ASK WHERE { resource:Fritz_Kampers property:place_of_birth resource:Munich }
[]
administrative territorial entity
SYSTEM
YES
(Q98363,P19,Q1726)
action is_in
entity Q1726
action find
entity Q98363
relation P19
[ANSWER]
['Q98363', 'P19', 'Q1726']
ASK WHERE { resource:Q98363 property:P19 resource:Q1726 }
Yes
action is_in
entity Munich
action find
entity Fritz Kampers
relation place of birth
['Fritz Kampers', 'place of birth', 'Munich']
ASK WHERE { resource:Fritz_Kampers property:place_of_birth resource:Munich }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments can exactly 1 person perform with ?
(c(Q502895),P1303,c(Q34379))
action count
action equal
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?i ) WHERE { FILTER ( ?b = 1 ) . { SELECT DISTINCT ?v ( COUNT ( ?r ) AS ?b ) WHERE { ?r property:P1303 ?v . ?v rdf:type ontology:Q34379 . ?r rdf:type ontology:Q502895 } GROUP BY ?v } }
action count
action equal
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?i ) WHERE { FILTER ( ?b = 1 ) . { SELECT DISTINCT ?v ( COUNT ( ?r ) AS ?b ) WHERE { ?r property:instrument ?v . ?v rdf:type ontology:musical_instrument . ?r rdf:type ontology:common_name } GROUP BY ?v } }
[]
musical instrument common name
SYSTEM
33
Q890073 Q1178361 Q604538 Q2660670 Q39777 Q678090 Q490054 Q873588 Q593995 Q1327500 Q1759986 Q1798603 Q1099153 Q120585 Q713298 Q1024685 Q816793 Q244976 Q1179017 Q320341 Q669370 Q290951 Q178933 Q16875637 Q790468 Q1129422 Q379248 Q744831 Q963150 Q16155191 Q644440 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action count
action equal
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?i ) WHERE { FILTER ( ?b = 1 ) . { SELECT DISTINCT ?v ( COUNT ( ?r ) AS ?b ) WHERE { ?r property:P1303 ?v . ?v rdf:type ontology:Q34379 . ?r rdf:type ontology:Q502895 } GROUP BY ?v } }
Body percussion davul Temple block Irish bouzouki maraca Twelve-string guitar Ondioline Jinghu player piano electronic musical instrument Wurlitzer electric piano string instrument clavinet Tsuzumi geomungo cabasa Bendir bodhrán Daxophone celesta gusle Kamancheh Hardanger fiddle transverse flute baritone horn morin khuur Timbales Mridangam tenor guitar Saraswati veena Lap steel guitar Kayamb Paraguayan harp
33
action count
action equal
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?i ) WHERE { FILTER ( ?b = 1 ) . { SELECT DISTINCT ?v ( COUNT ( ?r ) AS ?b ) WHERE { ?r property:instrument ?v . ?v rdf:type ontology:musical_instrument . ?r rdf:type ontology:common_name } GROUP BY ?v } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q183
P793
Q820655
USER
Which statutes are the significant events associated with Germany ?
(Q183,P793,c(Q820655))
action filter_type
action find
entity Q183
relation P793
type Q820655
['Q183', 'P793', {'concept': 'Q820655'}]
SELECT DISTINCT ?k WHERE { resource:Q183 property:P793 ?k . ?k rdf:type ontology:Q820655 }
Germany
action filter_type
action find
entity Germany
relation significant event
type statute
['Germany', 'significant event', {'concept': 'statute'}]
SELECT DISTINCT ?k WHERE { resource:Germany property:significant_event ?k . ?k rdf:type ontology:statute }
[]
statute
Q672112 Q274811 Q2307326
SYSTEM
Basic Treaty, Élysée Treaty, Treaty of Rome
Q672112 Q274811 Q2307326
(Q183,P793,c(Q820655))
action filter_type
action find
entity Q183
relation P793
type Q820655
[ANSWERS] are the significant events associated with Germany
['Q183', 'P793', {'concept': 'Q820655'}]
SELECT DISTINCT ?k WHERE { resource:Q183 property:P793 ?k . ?k rdf:type ontology:Q820655 }
Basic Treaty Élysée Treaty Treaty of Rome
Basic Treaty, Élysée Treaty and Treaty of Rome are the significant events associated with Germany
Basic Treaty Élysée Treaty Treaty of Rome
action filter_type
action find
entity Germany
relation significant event
type statute
['Germany', 'significant event', {'concept': 'statute'}]
SELECT DISTINCT ?k WHERE { resource:Germany property:significant_event ?k . ?k rdf:type ontology:statute }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q183
P35
Q502895
USER
Who are elected as the head of state of that political territory ?
(Q672112,P35,c(Q502895)) (Q274811,P35,c(Q502895)) (Q2307326,P35,c(Q502895))
action filter_type
action find
entity Q183
relation P35
type Q502895
['Q672112', 'P35', {'concept': 'Q502895'}] ['Q274811', 'P35', {'concept': 'Q502895'}] ['Q2307326', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { resource:Q183 property:P35 ?d . ?d rdf:type ontology:Q502895 }
Germany
action filter_type
action find
entity Germany
relation head of state
type common name
['Basic Treaty', 'head of state', {'concept': 'common name'}] ['Élysée Treaty', 'head of state', {'concept': 'common name'}] ['Treaty of Rome', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { resource:Germany property:head_of_state ?d . ?d rdf:type ontology:common_name }
[]
common name
Q2567 Q2571 Q2594
SYSTEM
Richard von Weizsäcker, Walter Scheel, Theodor Heuss
Q2569 Q2594 Q2573 Q2563 Q2571 Q2538 Q2551 Q2567 Q2540 Q2582 Q2542
(Q672112,P35,c(Q502895)) (Q274811,P35,c(Q502895)) (Q2307326,P35,c(Q502895))
action filter_type
action find
entity Q183
relation P35
type Q502895
[ANSWERS] are elected as the head of state of that political territory
['Q672112', 'P35', {'concept': 'Q502895'}] ['Q274811', 'P35', {'concept': 'Q502895'}] ['Q2307326', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { resource:Q183 property:P35 ?d . ?d rdf:type ontology:Q502895 }
Karl Carstens Theodor Heuss Gustav Heinemann Roman Herzog Walter Scheel Joachim Gauck Johannes Rau Richard von Weizsäcker Christian Wulff Heinrich Lübke Horst Köhler
Richard von Weizsäcker, Walter Scheel and Theodor Heuss are elected as the head of state of that political territory
Richard von Weizsäcker Walter Scheel Theodor Heuss
action filter_type
action find
entity Germany
relation head of state
type common name
['Basic Treaty', 'head of state', {'concept': 'common name'}] ['Élysée Treaty', 'head of state', {'concept': 'common name'}] ['Treaty of Rome', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { resource:Germany property:head_of_state ?d . ?d rdf:type ontology:common_name }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P138
Q12280 Q34442
USER
How many bridges and roads have that person as their toponym ?
(c(Q12280),P138,Q2594) (c(Q34442),P138,Q2594) (c(Q12280),P138,Q2567) (c(Q34442),P138,Q2567) (c(Q12280),P138,Q2571) (c(Q34442),P138,Q2571) (c(Q12280),P138,Q2594) (c(Q34442),P138,Q2594)
[{'concept': 'Q12280'}, 'P138', 'Q2594'] [{'concept': 'Q34442'}, 'P138', 'Q2594'] [{'concept': 'Q12280'}, 'P138', 'Q2567'] [{'concept': 'Q34442'}, 'P138', 'Q2567'] [{'concept': 'Q12280'}, 'P138', 'Q2571'] [{'concept': 'Q34442'}, 'P138', 'Q2571'] [{'concept': 'Q12280'}, 'P138', 'Q2594'] [{'concept': 'Q34442'}, 'P138', 'Q2594']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P138 resource:Q2594 } UNION { ?y property:P138 resource:Q2594 } UNION { ?z property:P138 resource:Q2567 } UNION { ?y property:P138 resource:Q2567 } UNION { ?z property:P138 resource:Q2571 } UNION { ?y property:P138 resource:Q2571 } UNION { ?z property:P138 resource:Q2594 } UNION { ?y property:P138 resource:Q2594 } } . ?z rdf:type ontology:Q996044 . ?y rdf:type ontology:Q34442 }
[{'concept': 'bridge'}, 'named after', 'Theodor Heuss'] [{'concept': 'road'}, 'named after', 'Theodor Heuss'] [{'concept': 'bridge'}, 'named after', 'Richard von Weizsäcker'] [{'concept': 'road'}, 'named after', 'Richard von Weizsäcker'] [{'concept': 'bridge'}, 'named after', 'Walter Scheel'] [{'concept': 'road'}, 'named after', 'Walter Scheel'] [{'concept': 'bridge'}, 'named after', 'Theodor Heuss'] [{'concept': 'road'}, 'named after', 'Theodor Heuss']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:named_after resource:Theodor_Heuss } UNION { ?y property:named_after resource:Theodor_Heuss } UNION { ?z property:named_after resource:Richard_von_Weizsäcker } UNION { ?y property:named_after resource:Richard_von_Weizsäcker } UNION { ?z property:named_after resource:Walter_Scheel } UNION { ?y property:named_after resource:Walter_Scheel } UNION { ?z property:named_after resource:Theodor_Heuss } UNION { ?y property:named_after resource:Theodor_Heuss } } . ?z rdf:type ontology:bridge . ?y rdf:type ontology:road }
[]
bridge road
Quantitative|Count|Mult. entity type|Clarification
Q2571
SYSTEM
Did you mean Walter Scheel ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P138 resource:Q2594 } UNION { ?y property:P138 resource:Q2594 } UNION { ?z property:P138 resource:Q2567 } UNION { ?y property:P138 resource:Q2567 } UNION { ?z property:P138 resource:Q2571 } UNION { ?y property:P138 resource:Q2571 } UNION { ?z property:P138 resource:Q2594 } UNION { ?y property:P138 resource:Q2594 } } . ?z rdf:type ontology:Q996044 . ?y rdf:type ontology:Q34442 }
Did you mean Walter Scheel ?
Walter Scheel
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:named_after resource:Theodor_Heuss } UNION { ?y property:named_after resource:Theodor_Heuss } UNION { ?z property:named_after resource:Richard_von_Weizsäcker } UNION { ?y property:named_after resource:Richard_von_Weizsäcker } UNION { ?z property:named_after resource:Walter_Scheel } UNION { ?y property:named_after resource:Walter_Scheel } UNION { ?z property:named_after resource:Theodor_Heuss } UNION { ?y property:named_after resource:Theodor_Heuss } } . ?z rdf:type ontology:bridge . ?y rdf:type ontology:road }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Theodor Heuss. Could you tell me the answer for that?
(c(Q12280),P138,Q2594) (c(Q34442),P138,Q2594) (c(Q12280),P138,Q2567) (c(Q34442),P138,Q2567) (c(Q12280),P138,Q2571) (c(Q34442),P138,Q2571) (c(Q12280),P138,Q2594) (c(Q34442),P138,Q2594)
Q2594
[{'concept': 'Q12280'}, 'P138', 'Q2594'] [{'concept': 'Q34442'}, 'P138', 'Q2594'] [{'concept': 'Q12280'}, 'P138', 'Q2567'] [{'concept': 'Q34442'}, 'P138', 'Q2567'] [{'concept': 'Q12280'}, 'P138', 'Q2571'] [{'concept': 'Q34442'}, 'P138', 'Q2571'] [{'concept': 'Q12280'}, 'P138', 'Q2594'] [{'concept': 'Q34442'}, 'P138', 'Q2594']
[{'concept': 'bridge'}, 'named after', 'Theodor Heuss'] [{'concept': 'road'}, 'named after', 'Theodor Heuss'] [{'concept': 'bridge'}, 'named after', 'Richard von Weizsäcker'] [{'concept': 'road'}, 'named after', 'Richard von Weizsäcker'] [{'concept': 'bridge'}, 'named after', 'Walter Scheel'] [{'concept': 'road'}, 'named after', 'Walter Scheel'] [{'concept': 'bridge'}, 'named after', 'Theodor Heuss'] [{'concept': 'road'}, 'named after', 'Theodor Heuss']
[]
SYSTEM
2 bridges and 1 roads
Q2417203 Q567512 Q14541043
(c(Q12280),P138,Q2594) (c(Q34442),P138,Q2594) (c(Q12280),P138,Q2567) (c(Q34442),P138,Q2567) (c(Q12280),P138,Q2571) (c(Q34442),P138,Q2571) (c(Q12280),P138,Q2594) (c(Q34442),P138,Q2594)
[ANSWER]
[{'concept': 'Q12280'}, 'P138', 'Q2594'] [{'concept': 'Q34442'}, 'P138', 'Q2594'] [{'concept': 'Q12280'}, 'P138', 'Q2567'] [{'concept': 'Q34442'}, 'P138', 'Q2567'] [{'concept': 'Q12280'}, 'P138', 'Q2571'] [{'concept': 'Q34442'}, 'P138', 'Q2571'] [{'concept': 'Q12280'}, 'P138', 'Q2594'] [{'concept': 'Q34442'}, 'P138', 'Q2594']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P138 resource:Q2594 } UNION { ?y property:P138 resource:Q2594 } UNION { ?z property:P138 resource:Q2567 } UNION { ?y property:P138 resource:Q2567 } UNION { ?z property:P138 resource:Q2571 } UNION { ?y property:P138 resource:Q2571 } UNION { ?z property:P138 resource:Q2594 } UNION { ?y property:P138 resource:Q2594 } } . ?z rdf:type ontology:Q996044 . ?y rdf:type ontology:Q34442 }
Theodor Heuss Bridge Theodor Heuss Bridge Heussallee
2 bridges and 1 roads
[{'concept': 'bridge'}, 'named after', 'Theodor Heuss'] [{'concept': 'road'}, 'named after', 'Theodor Heuss'] [{'concept': 'bridge'}, 'named after', 'Richard von Weizsäcker'] [{'concept': 'road'}, 'named after', 'Richard von Weizsäcker'] [{'concept': 'bridge'}, 'named after', 'Walter Scheel'] [{'concept': 'road'}, 'named after', 'Walter Scheel'] [{'concept': 'bridge'}, 'named after', 'Theodor Heuss'] [{'concept': 'road'}, 'named after', 'Theodor Heuss']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:named_after resource:Theodor_Heuss } UNION { ?y property:named_after resource:Theodor_Heuss } UNION { ?z property:named_after resource:Richard_von_Weizsäcker } UNION { ?y property:named_after resource:Richard_von_Weizsäcker } UNION { ?z property:named_after resource:Walter_Scheel } UNION { ?y property:named_after resource:Walter_Scheel } UNION { ?z property:named_after resource:Theodor_Heuss } UNION { ?y property:named_after resource:Theodor_Heuss } } . ?z rdf:type ontology:bridge . ?y rdf:type ontology:road }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments can around 2397 people perform with ?
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2397
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?u ) AS ?q ) WHERE { ?u property:P1303 ?f . ?f rdf:type ontology:Q34379 . ?u rdf:type ontology:Q502895 } GROUP BY ?f } . FILTER ( ?q = 2397 ) }
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2397
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?u ) AS ?q ) WHERE { ?u property:instrument ?f . ?f rdf:type ontology:musical_instrument . ?u rdf:type ontology:common_name } GROUP BY ?f } . FILTER ( ?q = 2397 ) }
[]
musical instrument common name
Q46185 Q8338 Q1444
SYSTEM
bass guitar, trumpet, organ
Q46185 Q8338 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2397
[ANSWERS] can around 2397 people perform with
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?u ) AS ?q ) WHERE { ?u property:P1303 ?f . ?f rdf:type ontology:Q34379 . ?u rdf:type ontology:Q502895 } GROUP BY ?f } . FILTER ( ?q = 2397 ) }
bass guitar trumpet organ drum kit
Bass guitar, trumpet and organ can around 2397 people perform with
bass guitar trumpet organ
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2397
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?u ) AS ?q ) WHERE { ?u property:instrument ?f . ?f rdf:type ontology:musical_instrument . ?u rdf:type ontology:common_name } GROUP BY ?f } . FILTER ( ?q = 2397 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q183
P1001
Q1269299
USER
Which business organizations apply to jurisdiction over Germany ?
(c(Q1269299),P1001,Q183)
action filter_type
action find_reverse
entity Q183
relation P1001
type Q1269299
[{'concept': 'Q1269299'}, 'P1001', 'Q183']
SELECT DISTINCT ?a WHERE { ?a property:P1001 resource:Q183 . ?a rdf:type ontology:Q1269299 }
Germany
action filter_type
action find_reverse
entity Germany
relation applies to jurisdiction
type type of business entity
[{'concept': 'type of business entity'}, 'applies to jurisdiction', 'Germany']
SELECT DISTINCT ?a WHERE { ?a property:applies_to_jurisdiction resource:Germany . ?a rdf:type ontology:type_of_business_entity }
[]
type of business entity
Q422062 Q1780029 Q2348860
SYSTEM
Aktiengesellschaft, Kommanditgesellschaft, Stiftung & Co. KGaA
Q1780029 Q2348860 Q2054374 Q19278985 Q897103 Q1418640 Q9299236 Q5349747 Q20659907 Q2348856 Q15734684 Q19823288 Q292704 Q460178 Q422062 Q1532883
(c(Q1269299),P1001,Q183)
action filter_type
action find_reverse
entity Q183
relation P1001
type Q1269299
[ANSWERS] apply to jurisdiction over Germany
[{'concept': 'Q1269299'}, 'P1001', 'Q183']
SELECT DISTINCT ?a WHERE { ?a property:P1001 resource:Q183 . ?a rdf:type ontology:Q1269299 }
Kommanditgesellschaft Stiftung & Co. KGaA Partenreederei sole proprietorship in Germany GmbH & Co. KG local government in Germany eingetragener Verein Eingetragene Genossenschaft AG & Co. KG Stiftung & Co. KG Körperschaft des öffentlichen Rechts Kommanditgesellschaft auf Aktien AG & Co. KGaA Gesellschaft mit beschränkter Haftung Aktiengesellschaft GmbH & Co. KGaA
Aktiengesellschaft, Kommanditgesellschaft and Stiftung & Co. KGaA apply to jurisdiction over Germany
Aktiengesellschaft Kommanditgesellschaft Stiftung & Co. KGaA
action filter_type
action find_reverse
entity Germany
relation applies to jurisdiction
type type of business entity
[{'concept': 'type of business entity'}, 'applies to jurisdiction', 'Germany']
SELECT DISTINCT ?a WHERE { ?a property:applies_to_jurisdiction resource:Germany . ?a rdf:type ontology:type_of_business_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q183
P163
Q14660
USER
What is associated with Germany ?
(Q183,P163,c(Q14660))
action filter_type
action find
entity Q183
relation P163
type Q14660
['Q183', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?c WHERE { resource:Q183 property:P163 ?c . ?c rdf:type ontology:Q14660 }
Germany
action filter_type
action find
entity Germany
relation flag
type flag
['Germany', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?c WHERE { resource:Germany property:flag ?c . ?c rdf:type ontology:flag }
[]
flag
Q48160
SYSTEM
flag of Germany
Q48160
(Q183,P163,c(Q14660))
action filter_type
action find
entity Q183
relation P163
type Q14660
Germany [ANSWER] is associated with Germany
['Q183', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?c WHERE { resource:Q183 property:P163 ?c . ?c rdf:type ontology:Q14660 }
flag of Germany
Germany flag of Germany is associated with Germany
flag of Germany
action filter_type
action find
entity Germany
relation flag
type flag
['Germany', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?c WHERE { resource:Germany property:flag ?c . ?c rdf:type ontology:flag }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q48160 Q183 Q261435
P1001
Q1048835
USER
Does that flag presides the jurisdiction over Germany and São João do Souto ?
(Q48160,P1001,Q183) (Q48160,P1001,Q261435)
action is_in
entity Q48160
action intersection
action find_reverse
entity Q183
relation P1001
action find_reverse
entity Q261435
relation P1001
['Q48160', 'P1001', 'Q183'] ['Q48160', 'P1001', 'Q261435']
ASK WHERE { resource:Q48160 property:P1001 resource:Q183 . resource:Q48160 property:P1001 resource:Q261435 }
flag of Germany Germany São João do Souto
action is_in
entity flag of Germany
action intersection
action find_reverse
entity Germany
relation applies to jurisdiction
action find_reverse
entity São João do Souto
relation applies to jurisdiction
['flag of Germany', 'applies to jurisdiction', 'Germany'] ['flag of Germany', 'applies to jurisdiction', 'São João do Souto']
ASK WHERE { resource:flag_of_Germany property:applies_to_jurisdiction resource:Germany . resource:flag_of_Germany property:applies_to_jurisdiction resource:São_João_do_Souto }
[]
political territorial entity
SYSTEM
YES and NO respectively
(Q48160,P1001,Q183) (Q48160,P1001,Q261435)
action is_in
entity Q48160
action intersection
action find_reverse
entity Q183
relation P1001
action find_reverse
entity Q261435
relation P1001
[ANSWER]
['Q48160', 'P1001', 'Q183'] ['Q48160', 'P1001', 'Q261435']
ASK WHERE { resource:Q48160 property:P1001 resource:Q183 . resource:Q48160 property:P1001 resource:Q261435 }
YES and NO respectively
action is_in
entity flag of Germany
action intersection
action find_reverse
entity Germany
relation applies to jurisdiction
action find_reverse
entity São João do Souto
relation applies to jurisdiction
['flag of Germany', 'applies to jurisdiction', 'Germany'] ['flag of Germany', 'applies to jurisdiction', 'São João do Souto']
ASK WHERE { resource:flag_of_Germany property:applies_to_jurisdiction resource:Germany . resource:flag_of_Germany property:applies_to_jurisdiction resource:São_João_do_Souto }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q2348860 Q183 Q1755991
P1001
Q1048835
USER
Does Stiftung & Co. KGaA apply to jurisdiction over Germany and Chapada Gaúcha ?
(Q2348860,P1001,Q183) (Q2348860,P1001,Q1755991)
action is_in
entity Q2348860
action intersection
action find_reverse
entity Q183
relation P1001
action find_reverse
entity Q1755991
relation P1001
['Q2348860', 'P1001', 'Q183'] ['Q2348860', 'P1001', 'Q1755991']
ASK WHERE { resource:Q2348860 property:P1001 resource:Q183 . resource:Q2348860 property:P1001 resource:Q1755991 }
Stiftung & Co. KGaA Germany Chapada Gaúcha
action is_in
entity Stiftung & Co. KGaA
action intersection
action find_reverse
entity Germany
relation applies to jurisdiction
action find_reverse
entity Chapada Gaúcha
relation applies to jurisdiction
['Stiftung & Co. KGaA', 'applies to jurisdiction', 'Germany'] ['Stiftung & Co. KGaA', 'applies to jurisdiction', 'Chapada Gaúcha']
ASK WHERE { resource:Stiftung_&_Co._KGaA property:applies_to_jurisdiction resource:Germany . resource:Stiftung_&_Co._KGaA property:applies_to_jurisdiction resource:Chapada_Gaúcha }
[]
political territorial entity
SYSTEM
YES and NO respectively
(Q2348860,P1001,Q183) (Q2348860,P1001,Q1755991)
action is_in
entity Q2348860
action intersection
action find_reverse
entity Q183
relation P1001
action find_reverse
entity Q1755991
relation P1001
[ANSWER]
['Q2348860', 'P1001', 'Q183'] ['Q2348860', 'P1001', 'Q1755991']
ASK WHERE { resource:Q2348860 property:P1001 resource:Q183 . resource:Q2348860 property:P1001 resource:Q1755991 }
YES and NO respectively
action is_in
entity Stiftung & Co. KGaA
action intersection
action find_reverse
entity Germany
relation applies to jurisdiction
action find_reverse
entity Chapada Gaúcha
relation applies to jurisdiction
['Stiftung & Co. KGaA', 'applies to jurisdiction', 'Germany'] ['Stiftung & Co. KGaA', 'applies to jurisdiction', 'Chapada Gaúcha']
ASK WHERE { resource:Stiftung_&_Co._KGaA property:applies_to_jurisdiction resource:Germany . resource:Stiftung_&_Co._KGaA property:applies_to_jurisdiction resource:Chapada_Gaúcha }
[]