Simple Question (Direct)
Simple Question
Q1539195
P102
Q7278
USER
Which political party is Gottfried Gurland a member of ?
(Q1539195,P102,c(Q7278))
action filter_type
action find
entity Q1539195
relation P102
type Q7278
['Q1539195', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?f WHERE { resource:Q1539195 property:P102 ?f . ?f rdf:type ontology:Q7278 }
Gottfried Gurland
action filter_type
action find
entity Gottfried Gurland
relation member of political party
type political party
['Gottfried Gurland', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?f WHERE { resource:Gottfried_Gurland property:member_of_political_party ?f . ?f rdf:type ontology:political_party }
[]
political party
Q49768
SYSTEM
Social Democratic Party of Germany
Q49768
(Q1539195,P102,c(Q7278))
action filter_type
action find
entity Q1539195
relation P102
type Q7278
Party [ANSWER] is Gottfried Gurland a member of
['Q1539195', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?f WHERE { resource:Q1539195 property:P102 ?f . ?f rdf:type ontology:Q7278 }
Social Democratic Party of Germany
Party Social Democratic Party of Germany is Gottfried Gurland a member of
Social Democratic Party of Germany
action filter_type
action find
entity Gottfried Gurland
relation member of political party
type political party
['Gottfried Gurland', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?f WHERE { resource:Gottfried_Gurland property:member_of_political_party ?f . ?f rdf:type ontology:political_party }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1539195
P166
Q618779
USER
Which award was Gottfried Gurland awarded with ?
(Q1539195,P166,c(Q618779))
action filter_type
action find
entity Q1539195
relation P166
type Q618779
['Q1539195', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?e WHERE { resource:Q1539195 property:P166 ?e . ?e rdf:type ontology:Q618779 }
Gottfried Gurland
action filter_type
action find
entity Gottfried Gurland
relation award received
type award
['Gottfried Gurland', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?e WHERE { resource:Gottfried_Gurland property:award_received ?e . ?e rdf:type ontology:award }
[]
award
Q10905276
SYSTEM
Commander's Cross of the Order of Merit of the Federal Republic of Germany
Q10905276
(Q1539195,P166,c(Q618779))
action filter_type
action find
entity Q1539195
relation P166
type Q618779
Gottfried Gurland was awarded the [ANSWER]
['Q1539195', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?e WHERE { resource:Q1539195 property:P166 ?e . ?e rdf:type ontology:Q618779 }
Commander's Cross of the Order of Merit of the Federal Republic of Germany
Gottfried Gurland was awarded the Commander's Cross of the Order of Merit of the Federal Republic of Germany
Commander's Cross of the Order of Merit of the Federal Republic of Germany
action filter_type
action find
entity Gottfried Gurland
relation award received
type award
['Gottfried Gurland', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?e WHERE { resource:Gottfried_Gurland property:award_received ?e . ?e rdf:type ontology:award }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q10905276 Q3441559
P166
Q502895
USER
Was Ronald Stein honoured with that award ?
(Q3441559,P166,Q10905276)
action is_in
entity Q3441559
action find
entity Q10905276
relation P166
['Q3441559', 'P166', 'Q10905276']
ASK WHERE { resource:Q10905276 property:P166 resource:Q3441559 }
Commander's Cross of the Order of Merit of the Federal Republic of Germany Ronald Stein
action is_in
entity Ronald Stein
action find
entity Commander's Cross of the Order of Merit of the Federal Republic of Germany
relation award received
['Ronald Stein', 'award received', "Commander's Cross of the Order of Merit of the Federal Republic of Germany"]
ASK WHERE { resource:Commander's_Cross_of_the_Order_of_Merit_of_the_Federal_Republic_of_Germany property:award_received resource:Ronald_Stein }
[]
common name
SYSTEM
NO
(Q3441559,P166,Q10905276)
action is_in
entity Q3441559
action find
entity Q10905276
relation P166
[ANSWER]
['Q3441559', 'P166', 'Q10905276']
ASK WHERE { resource:Q10905276 property:P166 resource:Q3441559 }
No
action is_in
entity Ronald Stein
action find
entity Commander's Cross of the Order of Merit of the Federal Republic of Germany
relation award received
['Ronald Stein', 'award received', "Commander's Cross of the Order of Merit of the Federal Republic of Germany"]
ASK WHERE { resource:Commander's_Cross_of_the_Order_of_Merit_of_the_Federal_Republic_of_Germany property:award_received resource:Ronald_Stein }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q1539195 Q7206558 Q183
P27
Q1048835
USER
Is Gottfried Gurland a citizen of Poctol and Germany ?
(Q1539195,P27,Q7206558) (Q1539195,P27,Q183)
action is_in
entity Q1539195
action intersection
action find_reverse
entity Q7206558
relation P27
action find_reverse
entity Q183
relation P27
['Q1539195', 'P27', 'Q7206558'] ['Q1539195', 'P27', 'Q183']
ASK WHERE { resource:Q1539195 property:P27 resource:Q7206558 . resource:Q1539195 property:P27 resource:Q183 }
Gottfried Gurland Poctol Germany
action is_in
entity Gottfried Gurland
action intersection
action find_reverse
entity Poctol
relation country of citizenship
action find_reverse
entity Germany
relation country of citizenship
['Gottfried Gurland', 'country of citizenship', 'Poctol'] ['Gottfried Gurland', 'country of citizenship', 'Germany']
ASK WHERE { resource:Gottfried_Gurland property:country_of_citizenship resource:Poctol . resource:Gottfried_Gurland property:country_of_citizenship resource:Germany }
[]
political territorial entity
SYSTEM
NO and YES respectively
(Q1539195,P27,Q7206558) (Q1539195,P27,Q183)
action is_in
entity Q1539195
action intersection
action find_reverse
entity Q7206558
relation P27
action find_reverse
entity Q183
relation P27
[ANSWER]
['Q1539195', 'P27', 'Q7206558'] ['Q1539195', 'P27', 'Q183']
ASK WHERE { resource:Q1539195 property:P27 resource:Q7206558 . resource:Q1539195 property:P27 resource:Q183 }
NO and YES respectively
action is_in
entity Gottfried Gurland
action intersection
action find_reverse
entity Poctol
relation country of citizenship
action find_reverse
entity Germany
relation country of citizenship
['Gottfried Gurland', 'country of citizenship', 'Poctol'] ['Gottfried Gurland', 'country of citizenship', 'Germany']
ASK WHERE { resource:Gottfried_Gurland property:country_of_citizenship resource:Poctol . resource:Gottfried_Gurland property:country_of_citizenship resource:Germany }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1527494 Q10905276
P17
Q1048835
USER
Which political territories are Commander's Cross of the Order of Merit of the Federal Republic of Germany or Tierpark Nadermann located in ?
OR((Q10905276,P17,c(Q1048835)), (Q1527494,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q10905276
relation P17
action find
entity Q1527494
relation P17
type Q1048835
{'OR': [['Q10905276', 'P17', {'concept': 'Q1048835'}], ['Q1527494', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q1048835 . { VALUES ( ?l ) { ( resource:Q10905276 ) ( resource:Q1527494 ) } . ?l property:P17 ?t } }
Tierpark Nadermann Commander's Cross of the Order of Merit of the Federal Republic of Germany
action filter_type
action union
action find
entity Commander's Cross of the Order of Merit of the Federal Republic of Germany
relation country
action find
entity Tierpark Nadermann
relation country
type political territorial entity
{'OR': [["Commander's Cross of the Order of Merit of the Federal Republic of Germany", 'country', {'concept': 'political territorial entity'}], ['Tierpark Nadermann', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:political_territorial_entity . { VALUES ( ?l ) { ( resource:Commander's_Cross_of_the_Order_of_Merit_of_the_Federal_Republic_of_Germany ) ( resource:Tierpark_Nadermann ) } . ?l property:country ?t } }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
OR((Q10905276,P17,c(Q1048835)), (Q1527494,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q10905276
relation P17
action find
entity Q1527494
relation P17
type Q1048835
[ANSWER] is Commander's Cross of the Order of Merit of the Federal Republic of [ANSWER] or Tierpark Nadermann located in
{'OR': [['Q10905276', 'P17', {'concept': 'Q1048835'}], ['Q1527494', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q1048835 . { VALUES ( ?l ) { ( resource:Q10905276 ) ( resource:Q1527494 ) } . ?l property:P17 ?t } }
Germany
Germany is Commander's Cross of the Order of Merit of the Federal Republic of Germany or Tierpark Nadermann located in
Germany
action filter_type
action union
action find
entity Commander's Cross of the Order of Merit of the Federal Republic of Germany
relation country
action find
entity Tierpark Nadermann
relation country
type political territorial entity
{'OR': [["Commander's Cross of the Order of Merit of the Federal Republic of Germany", 'country', {'concept': 'political territorial entity'}], ['Tierpark Nadermann', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:political_territorial_entity . { VALUES ( ?l ) { ( resource:Commander's_Cross_of_the_Order_of_Merit_of_the_Federal_Republic_of_Germany ) ( resource:Tierpark_Nadermann ) } . ?l property:country ?t } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P1427
Q1048835 Q22348500 Q18608583
USER
Which political territories are the start points of around the same number of cycling race classes and recurring sporting events as that political territory ?
(c(Q22348500)|c(Q18608583),P1427,c(Q1048835))
action approx
action union
action find_reverse_tuple_counts
relation P1427
type Q1048835
type Q22348500
action find_reverse_tuple_counts
relation P1427
type Q1048835
type Q18608583
action count
action filter_multi_types
action find_reverse
entity Q183
relation P1427
type Q22348500
type Q18608583
[[{'concept': 'Q22348500'}, {'concept': 'Q18608583'}], 'P1427', {'concept': 'Q1048835'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { ?p property:P1427 resource:Q183 . { VALUES ( ?a ) { ( ontology:Q22348500 ) ( ontology:Q18608583 ) } . ?p rdf:type ?a } } } . FILTER ( ?g = ?n ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) ?w WHERE { { ?x property:P1427 ?w . ?w rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q18608583 } UNION { ?x property:P1427 ?w . ?w rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q22348500 } } GROUP BY ?w } }
action approx
action union
action find_reverse_tuple_counts
relation start point
type political territorial entity
type cycling race class defined by the International Cycling Union
action find_reverse_tuple_counts
relation start point
type political territorial entity
type recurring sporting event
action count
action filter_multi_types
action find_reverse
entity Germany
relation start point
type cycling race class defined by the International Cycling Union
type recurring sporting event
[[{'concept': 'cycling race class defined by the International Cycling Union'}, {'concept': 'recurring sporting event'}], 'start point', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { ?p property:start_point resource:Germany . { VALUES ( ?a ) { ( ontology:cycling_race_class_defined_by_the_International_Cycling_Union ) ( ontology:recurring_sporting_event ) } . ?p rdf:type ?a } } } . FILTER ( ?g = ?n ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) ?w WHERE { { ?x property:start_point ?w . ?w rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:recurring_sporting_event } UNION { ?x property:start_point ?w . ?w rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:cycling_race_class_defined_by_the_International_Cycling_Union } } GROUP BY ?w } }
[]
political territorial entity cycling race class defined by the International Cycling Union recurring sporting event
Q183 Q639412 Q12647
SYSTEM
Germany, Tarazona, Vielha e Mijaran
Q572800 Q15907 Q1443867 Q55480 Q937763 Q593620 Q615841 Q183 Q1552975 Q496424 Q301437 Q2264671 Q1628379 Q49661 Q1607762 Q536682 Q641221 Q1647365 Q671341 Q1765676 Q848172 Q1442183 Q847329 Q1605692 Q11492 Q642046 Q430454 Q956524 Q1646362 Q1641632 Q488555 Q371748 Q1375842 Q739495 Q1649616 Q634078 Q1186888 Q15486 Q1629539 Q851020 Q846153 Q1621191 Q490638 Q77433 Q15640 Q492748 Q1374736 Q1617896 Q12686 Q484552 Q818341 Q564773 Q221749 Q639412 Q12647 Q825883 Q976528 Q492420 Q672483 Q1771143 Q693913 Q1605993 Q604810 Q592747
(c(Q22348500)|c(Q18608583),P1427,c(Q1048835))
action approx
action union
action find_reverse_tuple_counts
relation P1427
type Q1048835
type Q22348500
action find_reverse_tuple_counts
relation P1427
type Q1048835
type Q18608583
action count
action filter_multi_types
action find_reverse
entity Q183
relation P1427
type Q22348500
type Q18608583
[ANSWERS] are the start points of around the same number of cycling race classes and recurring sporting events as that political territory
[[{'concept': 'Q22348500'}, {'concept': 'Q18608583'}], 'P1427', {'concept': 'Q1048835'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { ?p property:P1427 resource:Q183 . { VALUES ( ?a ) { ( ontology:Q22348500 ) ( ontology:Q18608583 ) } . ?p rdf:type ?a } } } . FILTER ( ?g = ?n ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) ?w WHERE { { ?x property:P1427 ?w . ?w rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q18608583 } UNION { ?x property:P1427 ?w . ?w rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q22348500 } } GROUP BY ?w } }
Alcañiz Rota Los Corrales de Buelna Colmenar Viejo Graus Monachil Puebla de Don Fadrique Germany Sabiñánigo Calatayud Priego de Córdoba El Palomar Mairena del Alcor Mauren Cenlle Belorado Viveiro Urdazubi/Urdax Betanzos Torredelcampo Caleruega Sober Comillas Palomares del Río Mataró Calahorra Roa, Burgos Maella Villalpando Jódar Baeza San Lorenzo de El Escorial Ortigueira Vilanova de Arousa Orio Marín, Pontevedra Denbigh Bagà Salvaterra de Miño Xàbia San Roque A Estrada Almendralejo Leganés Sant Joan Despí Estepona Lalín Maceda Rialp Algeciras Monforte de Lemos Alhendín Torrevieja Tarazona Vielha e Mijaran Valls Alhaurín de la Torre Getxo Ordizia Carboneras de Guadazaón Medina del Campo Cistierna Markina-Xemein Las Rozas de Madrid
Germany, Tarazona and Vielha e Mijaran are the start points of around the same number of cycling race classes and recurring sporting events as that political territory
Germany Tarazona Vielha e Mijaran
action approx
action union
action find_reverse_tuple_counts
relation start point
type political territorial entity
type cycling race class defined by the International Cycling Union
action find_reverse_tuple_counts
relation start point
type political territorial entity
type recurring sporting event
action count
action filter_multi_types
action find_reverse
entity Germany
relation start point
type cycling race class defined by the International Cycling Union
type recurring sporting event
[[{'concept': 'cycling race class defined by the International Cycling Union'}, {'concept': 'recurring sporting event'}], 'start point', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { ?p property:start_point resource:Germany . { VALUES ( ?a ) { ( ontology:cycling_race_class_defined_by_the_International_Cycling_Union ) ( ontology:recurring_sporting_event ) } . ?p rdf:type ?a } } } . FILTER ( ?g = ?n ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) ?w WHERE { { ?x property:start_point ?w . ?w rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:recurring_sporting_event } UNION { ?x property:start_point ?w . ?w rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:cycling_race_class_defined_by_the_International_Cycling_Union } } GROUP BY ?w } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P17
Q1048835 Q7743 Q914262
USER
Which political territories are max number of homes or administrative territory of Swedens situated in ?
(c(Q7743)|c(Q914262),P17,c(Q1048835))
action argmax
action union
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q7743
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q914262
[[{'concept': 'Q7743'}, {'concept': 'Q914262'}], 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?k ) { SELECT DISTINCT ( COUNT ( ?a ) AS ?q ) ?p WHERE { { ?a property:P17 ?p . ?p rdf:type ontology:Q1048835 . ?a rdf:type ontology:Q914262 } UNION { ?a property:P17 ?p . ?p rdf:type ontology:Q1048835 . ?a rdf:type ontology:Q7743 } } GROUP BY ?p } } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?o ) ?v WHERE { { ?m property:P17 ?v . ?v rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q7743 } UNION { ?v rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q914262 . ?m property:P17 ?v } } GROUP BY ?v } . FILTER ( ?o = ?k ) }
action argmax
action union
action find_reverse_tuple_counts
relation country
type political territorial entity
type home
action find_reverse_tuple_counts
relation country
type political territorial entity
type administrative territorial entity of Sweden
[[{'concept': 'home'}, {'concept': 'administrative territorial entity of Sweden'}], 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?k ) { SELECT DISTINCT ( COUNT ( ?a ) AS ?q ) ?p WHERE { { ?a property:country ?p . ?p rdf:type ontology:political_territorial_entity . ?a rdf:type ontology:administrative_territorial_entity_of_Sweden } UNION { ?a property:country ?p . ?p rdf:type ontology:political_territorial_entity . ?a rdf:type ontology:home } } GROUP BY ?p } } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?o ) ?v WHERE { { ?m property:country ?v . ?v rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:home } UNION { ?v rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:administrative_territorial_entity_of_Sweden . ?m property:country ?v } } GROUP BY ?v } . FILTER ( ?o = ?k ) }
[]
political territorial entity home administrative territorial entity of Sweden
Q183
SYSTEM
Germany
Q183
(c(Q7743)|c(Q914262),P17,c(Q1048835))
action argmax
action union
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q7743
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q914262
[ANSWER] is max number of homes or administrative territory of Swedens situated in
[[{'concept': 'Q7743'}, {'concept': 'Q914262'}], 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?k ) { SELECT DISTINCT ( COUNT ( ?a ) AS ?q ) ?p WHERE { { ?a property:P17 ?p . ?p rdf:type ontology:Q1048835 . ?a rdf:type ontology:Q914262 } UNION { ?a property:P17 ?p . ?p rdf:type ontology:Q1048835 . ?a rdf:type ontology:Q7743 } } GROUP BY ?p } } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?o ) ?v WHERE { { ?m property:P17 ?v . ?v rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q7743 } UNION { ?v rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q914262 . ?m property:P17 ?v } } GROUP BY ?v } . FILTER ( ?o = ?k ) }
Germany
Germany is max number of homes or administrative territory of Swedens situated in
Germany
action argmax
action union
action find_reverse_tuple_counts
relation country
type political territorial entity
type home
action find_reverse_tuple_counts
relation country
type political territorial entity
type administrative territorial entity of Sweden
[[{'concept': 'home'}, {'concept': 'administrative territorial entity of Sweden'}], 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MAX ( ?q ) AS ?k ) { SELECT DISTINCT ( COUNT ( ?a ) AS ?q ) ?p WHERE { { ?a property:country ?p . ?p rdf:type ontology:political_territorial_entity . ?a rdf:type ontology:administrative_territorial_entity_of_Sweden } UNION { ?a property:country ?p . ?p rdf:type ontology:political_territorial_entity . ?a rdf:type ontology:home } } GROUP BY ?p } } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?o ) ?v WHERE { { ?m property:country ?v . ?v rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:home } UNION { ?v rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:administrative_territorial_entity_of_Sweden . ?m property:country ?v } } GROUP BY ?v } . FILTER ( ?o = ?k ) }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q183
P915
Q15416
USER
Which television programs were filmed at that political territory ?
(c(Q15416),P915,Q183)
action filter_type
action find_reverse
entity Q183
relation P915
type Q15416
[{'concept': 'Q15416'}, 'P915', 'Q183']
SELECT DISTINCT ?g WHERE { ?g property:P915 resource:Q183 . ?g rdf:type ontology:Q15416 }
Germany
action filter_type
action find_reverse
entity Germany
relation filming location
type television program
[{'concept': 'television program'}, 'filming location', 'Germany']
SELECT DISTINCT ?g WHERE { ?g property:filming_location resource:Germany . ?g rdf:type ontology:television_program }
[]
television program
Q827407 Q5349579 Q1741753
SYSTEM
Buddenbrooks, Ein Job, Children of the Open Road
Q17114673 Q5349579 Q827407 Q1741753
(c(Q15416),P915,Q183)
action filter_type
action find_reverse
entity Q183
relation P915
type Q15416
[ANSWERS] were filmed at that political territory
[{'concept': 'Q15416'}, 'P915', 'Q183']
SELECT DISTINCT ?g WHERE { ?g property:P915 resource:Q183 . ?g rdf:type ontology:Q15416 }
Of Pure Blood Ein Job Buddenbrooks Children of the Open Road
Buddenbrooks, Ein Job and Children of the Open Road were filmed at that political territory
Buddenbrooks Ein Job Children of the Open Road
action filter_type
action find_reverse
entity Germany
relation filming location
type television program
[{'concept': 'television program'}, 'filming location', 'Germany']
SELECT DISTINCT ?g WHERE { ?g property:filming_location resource:Germany . ?g rdf:type ontology:television_program }
[]
Clarification
Simple Question|Single Entity|Indirect
Q5349579
P495
Q1048835
USER
What is the country of origin of that television program ?
(Q5349579,P495,c(Q1048835))
action filter_type
action find
entity Q5349579
relation P495
type Q1048835
['Q5349579', 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { resource:Q5349579 property:P495 ?e . ?e rdf:type ontology:Q1048835 }
Ein Job
action filter_type
action find
entity Ein Job
relation country of origin
type political territorial entity
['Ein Job', 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Ein_Job property:country_of_origin ?e . ?e rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Clarification for simple ques.
Q827407
SYSTEM
Did you mean Buddenbrooks ?
Q827407 Q5349579 Q1741753
(Q827407,P495,c(Q1048835)) (Q5349579,P495,c(Q1048835)) (Q1741753,P495,c(Q1048835))
[ANSWER]
['Q827407', 'P495', {'concept': 'Q1048835'}] ['Q5349579', 'P495', {'concept': 'Q1048835'}] ['Q1741753', 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { resource:Q5349579 property:P495 ?e . ?e rdf:type ontology:Q1048835 }
Buddenbrooks Ein Job Children of the Open Road
Did you mean Buddenbrooks ?
Buddenbrooks
['Buddenbrooks', 'country of origin', {'concept': 'political territorial entity'}] ['Ein Job', 'country of origin', {'concept': 'political territorial entity'}] ['Children of the Open Road', 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Ein_Job property:country_of_origin ?e . ?e rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Ein Job. Could you tell me the answer for that?
(Q5349579,P495,c(Q1048835))
Q5349579
['Q5349579', 'P495', {'concept': 'Q1048835'}]
['Ein Job', 'country of origin', {'concept': 'political territorial entity'}]
[]
Q183
SYSTEM
Germany
Q183
(Q5349579,P495,c(Q1048835))
action filter_type
action find
entity Q5349579
relation P495
type Q1048835
The country of origin of that television program is from [ANSWER]
['Q5349579', 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { resource:Q5349579 property:P495 ?e . ?e rdf:type ontology:Q1048835 }
Germany
The country of origin of that television program is from Germany
Germany
action filter_type
action find
entity Ein Job
relation country of origin
type political territorial entity
['Ein Job', 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Ein_Job property:country_of_origin ?e . ?e rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q189350
P144
Q15416 Q11424 Q2342494
USER
How many television programs do greater number of films or collectables extend upon than 30 Rock ?
(c(Q11424)|c(Q2342494),P144,c(Q15416))
action count
action greater
action union
action find_reverse_tuple_counts
relation P144
type Q15416
type Q11424
action find_reverse_tuple_counts
relation P144
type Q15416
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q189350
relation P144
type Q11424
type Q2342494
[[{'concept': 'Q11424'}, {'concept': 'Q2342494'}], 'P144', {'concept': 'Q15416'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) ?i WHERE { { ?i rdf:type ontology:Q15416 . ?h rdf:type ontology:Q11424 . ?h property:P144 ?i } UNION { ?h property:P144 ?i . ?i rdf:type ontology:Q15416 . ?h rdf:type ontology:Q2342494 } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?x ) WHERE { ?m property:P144 resource:Q189350 . { { ?m rdf:type ontology:Q11424 } UNION { ?m rdf:type ontology:Q2342494 } } } } . FILTER ( ?l > ?x ) }
30 Rock
action count
action greater
action union
action find_reverse_tuple_counts
relation based on
type television program
type film
action find_reverse_tuple_counts
relation based on
type television program
type collectable
action count
action filter_multi_types
action find_reverse
entity 30 Rock
relation based on
type film
type collectable
[[{'concept': 'film'}, {'concept': 'collectable'}], 'based on', {'concept': 'television program'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) ?i WHERE { { ?i rdf:type ontology:television_program . ?h rdf:type ontology:film . ?h property:based_on ?i } UNION { ?h property:based_on ?i . ?i rdf:type ontology:television_program . ?h rdf:type ontology:collectable } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?x ) WHERE { ?m property:based_on resource:30_Rock . { { ?m rdf:type ontology:film } UNION { ?m rdf:type ontology:collectable } } } } . FILTER ( ?l > ?x ) }
[]
television program film collectable
SYSTEM
9
Q1077 Q212156 Q2095183 Q902253 Q183513 Q108774 Q3818118 Q34316 Q304290
(c(Q11424)|c(Q2342494),P144,c(Q15416))
action count
action greater
action union
action find_reverse_tuple_counts
relation P144
type Q15416
type Q11424
action find_reverse_tuple_counts
relation P144
type Q15416
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q189350
relation P144
type Q11424
type Q2342494
[ANSWER]
[[{'concept': 'Q11424'}, {'concept': 'Q2342494'}], 'P144', {'concept': 'Q15416'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) ?i WHERE { { ?i rdf:type ontology:Q15416 . ?h rdf:type ontology:Q11424 . ?h property:P144 ?i } UNION { ?h property:P144 ?i . ?i rdf:type ontology:Q15416 . ?h rdf:type ontology:Q2342494 } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?x ) WHERE { ?m property:P144 resource:Q189350 . { { ?m rdf:type ontology:Q11424 } UNION { ?m rdf:type ontology:Q2342494 } } } } . FILTER ( ?l > ?x ) }
Star Trek: The Original Series Angel Fingersmith Long Way Down Buffy the Vampire Slayer Star Trek: Deep Space Nine The Yogi Bear Show Doctor Who Rugrats
9
action count
action greater
action union
action find_reverse_tuple_counts
relation based on
type television program
type film
action find_reverse_tuple_counts
relation based on
type television program
type collectable
action count
action filter_multi_types
action find_reverse
entity 30 Rock
relation based on
type film
type collectable
[[{'concept': 'film'}, {'concept': 'collectable'}], 'based on', {'concept': 'television program'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?f ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) ?i WHERE { { ?i rdf:type ontology:television_program . ?h rdf:type ontology:film . ?h property:based_on ?i } UNION { ?h property:based_on ?i . ?i rdf:type ontology:television_program . ?h rdf:type ontology:collectable } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?x ) WHERE { ?m property:based_on resource:30_Rock . { { ?m rdf:type ontology:film } UNION { ?m rdf:type ontology:collectable } } } } . FILTER ( ?l > ?x ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q779048
P144
Q15416 Q11424 Q2342494
USER
And also tell me about Dead Like Me?
(c(Q11424)|c(Q2342494),P144,c(Q15416))
action count
action greater
action union
action find_reverse_tuple_counts
relation P144
type Q15416
type Q11424
action find_reverse_tuple_counts
relation P144
type Q15416
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q779048
relation P144
type Q11424
type Q2342494
[[{'concept': 'Q11424'}, {'concept': 'Q2342494'}], 'P144', {'concept': 'Q15416'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?w ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?p ) WHERE { { ?q rdf:type ontology:Q15416 . ?s rdf:type ontology:Q11424 . ?s property:P144 ?q } UNION { ?s property:P144 ?q . ?q rdf:type ontology:Q15416 . ?s rdf:type ontology:Q2342494 } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { { { ?u rdf:type ontology:Q11424 } UNION { ?u rdf:type ontology:Q2342494 } } . ?u property:P144 resource:Q779048 } } . FILTER ( ?p > ?a ) }
Dead Like Me
action count
action greater
action union
action find_reverse_tuple_counts
relation based on
type television program
type film
action find_reverse_tuple_counts
relation based on
type television program
type collectable
action count
action filter_multi_types
action find_reverse
entity Dead Like Me
relation based on
type film
type collectable
[[{'concept': 'film'}, {'concept': 'collectable'}], 'based on', {'concept': 'television program'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?w ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?p ) WHERE { { ?q rdf:type ontology:television_program . ?s rdf:type ontology:film . ?s property:based_on ?q } UNION { ?s property:based_on ?q . ?q rdf:type ontology:television_program . ?s rdf:type ontology:collectable } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { { { ?u rdf:type ontology:film } UNION { ?u rdf:type ontology:collectable } } . ?u property:based_on resource:Dead_Like_Me } } . FILTER ( ?p > ?a ) }
[]
television program film collectable
SYSTEM
9
Q1077 Q212156 Q2095183 Q902253 Q183513 Q108774 Q3818118 Q34316 Q304290
(c(Q11424)|c(Q2342494),P144,c(Q15416))
action count
action greater
action union
action find_reverse_tuple_counts
relation P144
type Q15416
type Q11424
action find_reverse_tuple_counts
relation P144
type Q15416
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q779048
relation P144
type Q11424
type Q2342494
[ANSWER]
[[{'concept': 'Q11424'}, {'concept': 'Q2342494'}], 'P144', {'concept': 'Q15416'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?w ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?p ) WHERE { { ?q rdf:type ontology:Q15416 . ?s rdf:type ontology:Q11424 . ?s property:P144 ?q } UNION { ?s property:P144 ?q . ?q rdf:type ontology:Q15416 . ?s rdf:type ontology:Q2342494 } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { { { ?u rdf:type ontology:Q11424 } UNION { ?u rdf:type ontology:Q2342494 } } . ?u property:P144 resource:Q779048 } } . FILTER ( ?p > ?a ) }
Star Trek: The Original Series Angel Fingersmith Long Way Down Buffy the Vampire Slayer Star Trek: Deep Space Nine The Yogi Bear Show Doctor Who Rugrats
9
action count
action greater
action union
action find_reverse_tuple_counts
relation based on
type television program
type film
action find_reverse_tuple_counts
relation based on
type television program
type collectable
action count
action filter_multi_types
action find_reverse
entity Dead Like Me
relation based on
type film
type collectable
[[{'concept': 'film'}, {'concept': 'collectable'}], 'based on', {'concept': 'television program'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?w ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?p ) WHERE { { ?q rdf:type ontology:television_program . ?s rdf:type ontology:film . ?s property:based_on ?q } UNION { ?s property:based_on ?q . ?q rdf:type ontology:television_program . ?s rdf:type ontology:collectable } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { { { ?u rdf:type ontology:film } UNION { ?u rdf:type ontology:collectable } } . ?u property:based_on resource:Dead_Like_Me } } . FILTER ( ?p > ?a ) }
[]