Simple Question (Direct)
Simple Question
Q1152657
P462
Q1075
USER
Which color is associated with Voyage to the Beginning of the World ?
(Q1152657,P462,c(Q1075))
action filter_type
action find
entity Q1152657
relation P462
type Q1075
['Q1152657', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q1075 . resource:Q1152657 property:P462 ?c }
Voyage to the Beginning of the World
action filter_type
action find
entity Voyage to the Beginning of the World
relation color
type color
['Voyage to the Beginning of the World', 'color', {'concept': 'color'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:color . resource:Voyage_to_the_Beginning_of_the_World property:color ?c }
[]
color
Q22006653
SYSTEM
color
Q22006653
(Q1152657,P462,c(Q1075))
action filter_type
action find
entity Q1152657
relation P462
type Q1075
[ANSWER] is associated with Voyage to the Beginning of the World
['Q1152657', 'P462', {'concept': 'Q1075'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q1075 . resource:Q1152657 property:P462 ?c }
color
Color is associated with Voyage to the Beginning of the World
color
action filter_type
action find
entity Voyage to the Beginning of the World
relation color
type color
['Voyage to the Beginning of the World', 'color', {'concept': 'color'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:color . resource:Voyage_to_the_Beginning_of_the_World property:color ?c }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1152657
P161
Q502895
USER
Which people starred in Voyage to the Beginning of the World ?
(Q1152657,P161,c(Q502895))
action filter_type
action find
entity Q1152657
relation P161
type Q502895
['Q1152657', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q1152657 property:P161 ?s . ?s rdf:type ontology:Q502895 }
Voyage to the Beginning of the World
action filter_type
action find
entity Voyage to the Beginning of the World
relation cast member
type common name
['Voyage to the Beginning of the World', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:Voyage_to_the_Beginning_of_the_World property:cast_member ?s . ?s rdf:type ontology:common_name }
[]
common name
Q55469 Q3170145 Q512343
SYSTEM
Marcello Mastroianni, Jean-Yves Gautier, Isabel de Castro
Q55469 Q512420 Q512343 Q3170145 Q1226838 Q3186525 Q291450
(Q1152657,P161,c(Q502895))
action filter_type
action find
entity Q1152657
relation P161
type Q502895
[ANSWERS] starred in Voyage to the Beginning of the World
['Q1152657', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q1152657 property:P161 ?s . ?s rdf:type ontology:Q502895 }
Marcello Mastroianni Isabel Ruth Isabel de Castro Jean-Yves Gautier Diogo Dória José Pinto Leonor Silveira
Marcello Mastroianni, Jean-Yves Gautier and Isabel de Castro starred in Voyage to the Beginning of the World
Marcello Mastroianni Jean-Yves Gautier Isabel de Castro
action filter_type
action find
entity Voyage to the Beginning of the World
relation cast member
type common name
['Voyage to the Beginning of the World', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:Voyage_to_the_Beginning_of_the_World property:cast_member ?s . ?s rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1152657
P58
Q502895
USER
Who wrote the script for Voyage to the Beginning of the World ?
(Q1152657,P58,c(Q502895))
action filter_type
action find
entity Q1152657
relation P58
type Q502895
['Q1152657', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q1152657 property:P58 ?j . ?j rdf:type ontology:Q502895 }
Voyage to the Beginning of the World
action filter_type
action find
entity Voyage to the Beginning of the World
relation screenwriter
type common name
['Voyage to the Beginning of the World', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Voyage_to_the_Beginning_of_the_World property:screenwriter ?j . ?j rdf:type ontology:common_name }
[]
common name
Q43264
SYSTEM
Manoel de Oliveira
Q43264
(Q1152657,P58,c(Q502895))
action filter_type
action find
entity Q1152657
relation P58
type Q502895
[ANSWER] wrote the script for Voyage to the Beginning of the World
['Q1152657', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q1152657 property:P58 ?j . ?j rdf:type ontology:Q502895 }
Manoel de Oliveira
Manoel de Oliveira wrote the script for Voyage to the Beginning of the World
Manoel de Oliveira
action filter_type
action find
entity Voyage to the Beginning of the World
relation screenwriter
type common name
['Voyage to the Beginning of the World', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Voyage_to_the_Beginning_of_the_World property:screenwriter ?j . ?j rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q43264
P344
Q838948
USER
Which work of art is that person the cinematographer of ?
(c(Q838948),P344,Q43264)
action filter_type
action find_reverse
entity Q43264
relation P344
type Q838948
[{'concept': 'Q838948'}, 'P344', 'Q43264']
SELECT DISTINCT ?c WHERE { ?c property:P344 resource:Q43264 . ?c rdf:type ontology:Q838948 }
Manoel de Oliveira
action filter_type
action find_reverse
entity Manoel de Oliveira
relation director of photography
type work of art
[{'concept': 'work of art'}, 'director of photography', 'Manoel de Oliveira']
SELECT DISTINCT ?c WHERE { ?c property:director_of_photography resource:Manoel_de_Oliveira . ?c rdf:type ontology:work_of_art }
[]
work of art
Q2091800
SYSTEM
Rite of Spring
Q2091800
(c(Q838948),P344,Q43264)
action filter_type
action find_reverse
entity Q43264
relation P344
type Q838948
[ANSWER] is that person the cinematographer of
[{'concept': 'Q838948'}, 'P344', 'Q43264']
SELECT DISTINCT ?c WHERE { ?c property:P344 resource:Q43264 . ?c rdf:type ontology:Q838948 }
Rite of Spring
Rite of Spring is that person the cinematographer of
Rite of Spring
action filter_type
action find_reverse
entity Manoel de Oliveira
relation director of photography
type work of art
[{'concept': 'work of art'}, 'director of photography', 'Manoel de Oliveira']
SELECT DISTINCT ?c WHERE { ?c property:director_of_photography resource:Manoel_de_Oliveira . ?c rdf:type ontology:work_of_art }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q22006653 Q43264
P462 P344
Q838948
USER
Which works of art are Manoel de Oliveira assigned to as the cinematographer and are color in color ?
AND((c(Q838948),P344,Q43264), (c(Q838948),P462,Q22006653))
action filter_type
action intersection
action find_reverse
entity Q43264
relation P344
action find_reverse
entity Q22006653
relation P462
type Q838948
{'AND': [[{'concept': 'Q838948'}, 'P344', 'Q43264'], [{'concept': 'Q838948'}, 'P462', 'Q22006653']]}
SELECT DISTINCT ?g WHERE { ?g property:P344 resource:Q43264 . ?g property:P462 resource:Q22006653 . ?g rdf:type ontology:Q838948 }
color Manoel de Oliveira
action filter_type
action intersection
action find_reverse
entity Manoel de Oliveira
relation director of photography
action find_reverse
entity color
relation color
type work of art
{'AND': [[{'concept': 'work of art'}, 'director of photography', 'Manoel de Oliveira'], [{'concept': 'work of art'}, 'color', 'color']]}
SELECT DISTINCT ?g WHERE { ?g property:director_of_photography resource:Manoel_de_Oliveira . ?g property:color resource:color . ?g rdf:type ontology:work_of_art }
[]
work of art
Q2091800
SYSTEM
Rite of Spring
Q2091800
AND((c(Q838948),P344,Q43264), (c(Q838948),P462,Q22006653))
action filter_type
action intersection
action find_reverse
entity Q43264
relation P344
action find_reverse
entity Q22006653
relation P462
type Q838948
Manoel de Oliveira are assigned to the [ANSWER] and are color in color as the cinematographer
{'AND': [[{'concept': 'Q838948'}, 'P344', 'Q43264'], [{'concept': 'Q838948'}, 'P462', 'Q22006653']]}
SELECT DISTINCT ?g WHERE { ?g property:P344 resource:Q43264 . ?g property:P462 resource:Q22006653 . ?g rdf:type ontology:Q838948 }
Rite of Spring
Manoel de Oliveira are assigned to the Rite of Spring and are color in color as the cinematographer
Rite of Spring
action filter_type
action intersection
action find_reverse
entity Manoel de Oliveira
relation director of photography
action find_reverse
entity color
relation color
type work of art
{'AND': [[{'concept': 'work of art'}, 'director of photography', 'Manoel de Oliveira'], [{'concept': 'work of art'}, 'color', 'color']]}
SELECT DISTINCT ?g WHERE { ?g property:director_of_photography resource:Manoel_de_Oliveira . ?g property:color resource:color . ?g rdf:type ontology:work_of_art }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q2091800 Q4877137
P57
Q502895
USER
Did Beatrice Deer serve as the directed of that work of art ?
(Q2091800,P57,Q4877137)
action is_in
entity Q4877137
action find
entity Q2091800
relation P57
['Q2091800', 'P57', 'Q4877137']
ASK WHERE { resource:Q2091800 property:P57 resource:Q4877137 }
Rite of Spring Beatrice Deer
action is_in
entity Beatrice Deer
action find
entity Rite of Spring
relation director
['Rite of Spring', 'director', 'Beatrice Deer']
ASK WHERE { resource:Rite_of_Spring property:director resource:Beatrice_Deer }
[]
common name
SYSTEM
NO
(Q2091800,P57,Q4877137)
action is_in
entity Q4877137
action find
entity Q2091800
relation P57
[ANSWER]
['Q2091800', 'P57', 'Q4877137']
ASK WHERE { resource:Q2091800 property:P57 resource:Q4877137 }
No
action is_in
entity Beatrice Deer
action find
entity Rite of Spring
relation director
['Rite of Spring', 'director', 'Beatrice Deer']
ASK WHERE { resource:Rite_of_Spring property:director resource:Beatrice_Deer }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q3170145 Q142
P27
Q15617994
USER
Does Jean-Yves Gautier belong to France ?
(Q3170145,P27,Q142)
action is_in
entity Q142
action find
entity Q3170145
relation P27
['Q3170145', 'P27', 'Q142']
ASK WHERE { resource:Q3170145 property:P27 resource:Q142 }
Jean-Yves Gautier France
action is_in
entity France
action find
entity Jean-Yves Gautier
relation country of citizenship
['Jean-Yves Gautier', 'country of citizenship', 'France']
ASK WHERE { resource:Jean-Yves_Gautier property:country_of_citizenship resource:France }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q3170145,P27,Q142)
action is_in
entity Q142
action find
entity Q3170145
relation P27
[ANSWER]
['Q3170145', 'P27', 'Q142']
ASK WHERE { resource:Q3170145 property:P27 resource:Q142 }
Yes
action is_in
entity France
action find
entity Jean-Yves Gautier
relation country of citizenship
['Jean-Yves Gautier', 'country of citizenship', 'France']
ASK WHERE { resource:Jean-Yves_Gautier property:country_of_citizenship resource:France }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q2091800 Q45
P495
Q15617994
USER
Is Portugal the origin of Rite of Spring ?
(Q2091800,P495,Q45)
action is_in
entity Q45
action find
entity Q2091800
relation P495
['Q2091800', 'P495', 'Q45']
ASK WHERE { resource:Q2091800 property:P495 resource:Q45 }
Rite of Spring Portugal
action is_in
entity Portugal
action find
entity Rite of Spring
relation country of origin
['Rite of Spring', 'country of origin', 'Portugal']
ASK WHERE { resource:Rite_of_Spring property:country_of_origin resource:Portugal }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q2091800,P495,Q45)
action is_in
entity Q45
action find
entity Q2091800
relation P495
[ANSWER]
['Q2091800', 'P495', 'Q45']
ASK WHERE { resource:Q2091800 property:P495 resource:Q45 }
Yes
action is_in
entity Portugal
action find
entity Rite of Spring
relation country of origin
['Rite of Spring', 'country of origin', 'Portugal']
ASK WHERE { resource:Rite_of_Spring property:country_of_origin resource:Portugal }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q574 Q142
P463
Q484652
USER
Which international organizations were France or East Timor a member of ?
OR((Q142,P463,c(Q484652)), (Q574,P463,c(Q484652)))
action filter_type
action union
action find
entity Q142
relation P463
action find
entity Q574
relation P463
type Q484652
{'OR': [['Q142', 'P463', {'concept': 'Q484652'}], ['Q574', 'P463', {'concept': 'Q484652'}]]}
SELECT DISTINCT ?i WHERE { { VALUES ( ?x ) { ( resource:Q142 ) ( resource:Q574 ) } . ?x property:P463 ?i } . ?i rdf:type ontology:Q484652 }
East Timor France
action filter_type
action union
action find
entity France
relation member of
action find
entity East Timor
relation member of
type international organization
{'OR': [['France', 'member of', {'concept': 'international organization'}], ['East Timor', 'member of', {'concept': 'international organization'}]]}
SELECT DISTINCT ?i WHERE { { VALUES ( ?x ) { ( resource:France ) ( resource:East_Timor ) } . ?x property:member_of ?i } . ?i rdf:type ontology:international_organization }
[]
international organization
Q1065 Q1043527 Q188822 Q19771 Q42262 Q7768 Q37143 Q134102 Q294278 Q7184
SYSTEM
Some of them are United Nations, Multilateral Investment Guarantee Agency, Asian Development Bank, G20, European Space Agency, ASEAN, G8, Organisation internationale de la Francophonie, African, Caribbean and Pacific Group of States, North Atlantic Treaty Organisation
Q496967 Q81299 Q7768 Q1065 Q19771 Q188822 Q37143 Q134102 Q294278 Q7184 Q42262 Q1043527
OR((Q142,P463,c(Q484652)), (Q574,P463,c(Q484652)))
action filter_type
action union
action find
entity Q142
relation P463
action find
entity Q574
relation P463
type Q484652
[ANSWERS] were France or East Timor a member of
{'OR': [['Q142', 'P463', {'concept': 'Q484652'}], ['Q574', 'P463', {'concept': 'Q484652'}]]}
SELECT DISTINCT ?i WHERE { { VALUES ( ?x ) { ( resource:Q142 ) ( resource:Q574 ) } . ?x property:P463 ?i } . ?i rdf:type ontology:Q484652 }
Alliance of Small Island States Organization for Security and Co-operation in Europe ASEAN United Nations G20 Asian Development Bank G8 Organisation internationale de la Francophonie African, Caribbean and Pacific Group of States North Atlantic Treaty Organisation European Space Agency Multilateral Investment Guarantee Agency
United Nations, Multilateral Investment Guarantee Agency, Asian Development Bank, G20, European Space Agency, ASEAN, G8, Organisation internationale de la Francophonie, African, Caribbean and Pacific Group of States and North Atlantic Treaty Organisation were France or East Timor a member of
United Nations Multilateral Investment Guarantee Agency Asian Development Bank G20 European Space Agency ASEAN G8 Organisation internationale de la Francophonie African, Caribbean and Pacific Group of States North Atlantic Treaty Organisation
action filter_type
action union
action find
entity France
relation member of
action find
entity East Timor
relation member of
type international organization
{'OR': [['France', 'member of', {'concept': 'international organization'}], ['East Timor', 'member of', {'concept': 'international organization'}]]}
SELECT DISTINCT ?i WHERE { { VALUES ( ?x ) { ( resource:France ) ( resource:East_Timor ) } . ?x property:member_of ?i } . ?i rdf:type ontology:international_organization }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1065
P159
Q1497375 Q56061
USER
How many items with multiple objects or administrative territories are the headquarter locations of United Nations ?
(Q1065,P159,c(Q1497375)) (Q1065,P159,c(Q56061))
action count
action union
action filter_type
action find
entity Q1065
relation P159
type Q1497375
action filter_type
action find
entity Q1065
relation P159
type Q56061
['Q1065', 'P159', {'concept': 'Q1497375'}] ['Q1065', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { { resource:Q1065 property:P159 ?d . ?d rdf:type ontology:Q1497375 } UNION { resource:Q1065 property:P159 ?d . ?d rdf:type ontology:Q56061 } }
United Nations
action count
action union
action filter_type
action find
entity United Nations
relation headquarters location
type item with multiple objects
action filter_type
action find
entity United Nations
relation headquarters location
type administrative territorial entity
['United Nations', 'headquarters location', {'concept': 'item with multiple objects'}] ['United Nations', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { { resource:United_Nations property:headquarters_location ?d . ?d rdf:type ontology:item_with_multiple_objects } UNION { resource:United_Nations property:headquarters_location ?d . ?d rdf:type ontology:administrative_territorial_entity } }
[]
item with multiple objects administrative territorial entity
SYSTEM
2
Q60 Q11297
(Q1065,P159,c(Q1497375)) (Q1065,P159,c(Q56061))
action count
action union
action filter_type
action find
entity Q1065
relation P159
type Q1497375
action filter_type
action find
entity Q1065
relation P159
type Q56061
[ANSWER]
['Q1065', 'P159', {'concept': 'Q1497375'}] ['Q1065', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { { resource:Q1065 property:P159 ?d . ?d rdf:type ontology:Q1497375 } UNION { resource:Q1065 property:P159 ?d . ?d rdf:type ontology:Q56061 } }
New York City Headquarters of the United Nations
2
action count
action union
action filter_type
action find
entity United Nations
relation headquarters location
type item with multiple objects
action filter_type
action find
entity United Nations
relation headquarters location
type administrative territorial entity
['United Nations', 'headquarters location', {'concept': 'item with multiple objects'}] ['United Nations', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { { resource:United_Nations property:headquarters_location ?d . ?d rdf:type ontology:item_with_multiple_objects } UNION { resource:United_Nations property:headquarters_location ?d . ?d rdf:type ontology:administrative_territorial_entity } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q9653708 Q19771
P27 P17
Q15617994
USER
Which administrative territories do G20 belong to or do Belmiro Ferreira Braga belong to ?
OR((Q19771,P17,c(Q15617994)), (Q9653708,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q19771
relation P17
action find
entity Q9653708
relation P27
type Q15617994
{'OR': [['Q19771', 'P17', {'concept': 'Q15617994'}], ['Q9653708', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q19771 property:P17 ?j } UNION { resource:Q9653708 property:P27 ?j } } . ?j rdf:type ontology:Q15617994 }
Belmiro Ferreira Braga G20
action filter_type
action union
action find
entity G20
relation country
action find
entity Belmiro Ferreira Braga
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['G20', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Belmiro Ferreira Braga', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:G20 property:country ?j } UNION { resource:Belmiro_Ferreira_Braga property:country_of_citizenship ?j } } . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q17 Q142 Q668 Q159 Q851 Q155 Q148 Q96 Q30 Q414
SYSTEM
Some of them are Japan, France, India, Russia, Saudi Arabia, Brazil, People's Republic of China, Mexico, United States of America, Argentina
Q142 Q884 Q159 Q43 Q145 Q155 Q851 Q148 Q96 Q17 Q30 Q252 Q668 Q38 Q414 Q258
OR((Q19771,P17,c(Q15617994)), (Q9653708,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q19771
relation P17
action find
entity Q9653708
relation P27
type Q15617994
[ANSWERS] G20 belong to or Belmiro Ferreira Braga belong to
{'OR': [['Q19771', 'P17', {'concept': 'Q15617994'}], ['Q9653708', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q19771 property:P17 ?j } UNION { resource:Q9653708 property:P27 ?j } } . ?j rdf:type ontology:Q15617994 }
France South Korea Russia Turkey United Kingdom Brazil Saudi Arabia People's Republic of China Mexico Japan United States of America Indonesia India Italy Argentina South Africa
Japan, France, India, Russia, Saudi Arabia, Brazil, People's Republic of China, Mexico, United States of America and Argentina G20 belong to or Belmiro Ferreira Braga belong to
Japan France India Russia Saudi Arabia Brazil People's Republic of China Mexico United States of America Argentina
action filter_type
action union
action find
entity G20
relation country
action find
entity Belmiro Ferreira Braga
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['G20', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Belmiro Ferreira Braga', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { { { resource:G20 property:country ?j } UNION { resource:Belmiro_Ferreira_Braga property:country_of_citizenship ?j } } . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories have diplomatic relations with approximately 90 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 90
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { FILTER ( ?e = 90 ) . { SELECT DISTINCT ?b ( COUNT ( ?i ) AS ?e ) WHERE { ?b property:P530 ?i . ?b rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q15617994 } GROUP BY ?b } }
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 90
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { FILTER ( ?e = 90 ) . { SELECT DISTINCT ?b ( COUNT ( ?i ) AS ?e ) WHERE { ?b property:diplomatic_relation ?i . ?b rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?b } }
[]
designation for an administrative territorial entity political territorial entity
Q183 Q408
SYSTEM
Germany, Australia
Q183 Q408
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 90
[ANSWERS] have diplomatic relations with approximately 90 administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { FILTER ( ?e = 90 ) . { SELECT DISTINCT ?b ( COUNT ( ?i ) AS ?e ) WHERE { ?b property:P530 ?i . ?b rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q15617994 } GROUP BY ?b } }
Germany Australia
Germany and Australia have diplomatic relations with approximately 90 administrative territories
Germany Australia
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 90
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { FILTER ( ?e = 90 ) . { SELECT DISTINCT ?b ( COUNT ( ?i ) AS ?e ) WHERE { ?b property:diplomatic_relation ?i . ?b rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?b } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q183 Q408
P17
Q3947
USER
Which houses are present in Germany and Australia ?
(c(Q3947),P17,Q183) (c(Q3947),P17,Q408)
action union
action filter_type
action find_reverse
entity Q183
relation P17
type Q3947
action filter_type
action find_reverse
entity Q408
relation P17
type Q3947
[{'concept': 'Q3947'}, 'P17', 'Q183'] [{'concept': 'Q3947'}, 'P17', 'Q408']
SELECT DISTINCT ?k WHERE { ?k property:P17 ?q . VALUES ( ?q ) { ( resource:Q183 ) ( resource:Q408 ) } }
Germany Australia
action union
action filter_type
action find_reverse
entity Germany
relation country
type house
action filter_type
action find_reverse
entity Australia
relation country
type house
[{'concept': 'house'}, 'country', 'Germany'] [{'concept': 'house'}, 'country', 'Australia']
SELECT DISTINCT ?k WHERE { ?k property:country ?q . VALUES ( ?q ) { ( resource:Germany ) ( resource:Australia ) } }
[]
house
Q15838847 Q15838820 Q15112209
SYSTEM
Tempelstrasse 10, Tempelstraße 8, Haus Birkhof
Q17591029 Q17591025 Q17591023 Q17591021 Q17591020 Q18026867 Q18026866 Q18026861 Q18026860 Q18026863 Q14546740 Q15610069 Q18026878 Q18026877 Q18026874 Q18026875 Q18026872 Q18026871 Q14545616 Q18026847 Q18026846 Q18026849 Q17608572 Q22947991 Q2525594 Q18026855 Q18026857 Q18026850 Q18026852 Q18026853 Q18026858 Q18750481 Q1590019 Q314898 Q1599863 Q2525266 Q2524794 Q14547530 Q17507283 Q1804115 Q15126078 Q1676116 Q27500938 Q318084 Q16514154 Q2524859 Q18706645 Q1779947 Q18681675 Q17488001 Q15133272 Q14545369 Q17608693 Q2525979 Q1201503 Q815775 Q15838820 Q1381370 Q14544558 Q18908005 Q1826129 Q1590565 Q15840275 Q1590249 Q15617085 Q414188 Q17318519 Q15126336 Q17778200 Q16478293 Q2524982 Q1467291 Q16504290 Q315089 Q529285 Q1688944 Q15296701 Q15651199 Q15651192 Q18642856 Q1653786 Q17627319 Q15124420 Q15124422 Q15840273 Q15840272 Q15840274 Q15840276 Q15838847 Q686548 Q1312526 Q1590734 Q17487900 Q16736655 Q15649864 Q22615 Q15649879 Q15649872 Q21212963 Q14906885 Q14906992 Q15730096 Q15730092 Q20693673 Q1679553 Q1311566 Q16920952 Q17519612 Q1590190 Q1566474 Q14906942 Q1409679 Q15700663 Q15111710 Q15124419 Q900306 Q1417679 Q18609782 Q1302345 Q1299516 Q553612 Q2525799 Q18049308 Q15613817 Q15112209 Q15715648 Q1440343 Q1327076 Q1243445 Q1645741 Q1182899 Q1243439 Q18643398 Q674670 Q1387625 Q17485050 Q17608321 Q2525124 Q2525126 Q15106496 Q15118907 Q17379737 Q17615187 Q1648281 Q872048 Q17639699 Q153880 Q2082437 Q15896510 Q15479910 Q15823623 Q2525765 Q15970669 Q2525771 Q17507148 Q14421876 Q27488984 Q15118460 Q15133844 Q15118459 Q15118457 Q27463767 Q17591009 Q17591006 Q1582141 Q17590998 Q17590995 Q1237076 Q16632513 Q18026888 Q18026886 Q18026885 Q18026883 Q18026882 Q18026880 Q6567344 Q18666330 Q15123304 Q15126080 Q14547199 Q14906398 Q20981143 Q686109 Q15391816 Q27495132 Q15303877 Q1737788 Q17608896 Q20656006 Q22138755 Q1623524 Q18011473 Q21993435 Q878689 Q798432 Q16237234 Q17591001 Q17591002 Q17591004 Q17591007 Q16481498 Q5398460 Q14544661 Q1805198 Q17591018 Q17591019 Q17591012 Q17591010 Q17591011 Q17591016 Q17591014 Q2179523 Q2525441 Q1614048 Q15133907 Q22910688 Q14935695 Q18331577 Q26856686 Q26856797 Q767565 Q5983362 Q26837373
(c(Q3947),P17,Q183) (c(Q3947),P17,Q408)
action union
action filter_type
action find_reverse
entity Q183
relation P17
type Q3947
action filter_type
action find_reverse
entity Q408
relation P17
type Q3947
[ANSWERS] are present in Germany and Australia
[{'concept': 'Q3947'}, 'P17', 'Q183'] [{'concept': 'Q3947'}, 'P17', 'Q408']
SELECT DISTINCT ?k WHERE { ?k property:P17 ?q . VALUES ( ?q ) { ( resource:Q183 ) ( resource:Q408 ) } }
Rectory (Westendorf) Rectory (Thierhaupten) Rectory (Pfuhl) Rectory (Langweid am Lech) Rectory (Langenreichen) rectory rectory rectory rectory rectory Kurt-Schumacher-Straße 4/6 Raiffeisenstraße 3 rectory rectory rectory rectory rectory rectory Am Lessing 6 rectory rectory rectory Pfarrhaus (Landensberg) Möckelhaus Villa Prieger rectory rectory rectory rectory rectory rectory Obergasse 20 (Lang-Göns) Haus Carstanjen Roman Baths Joachimstraße 10/12 Villa Hoeller Villa Albert Lohmann Villa Malta Pfarrhaus (Könghausen) Villa Selve Rheinallee 32 Adenauerallee 87a Hauptstraße 12 Beethoven House Hauptstraße 10 (Karlstadt) Villa Berger Pfarrhaus Pfarrhaus (Ahrweiler) Riescheider Straße 1 Pfarrhof Biberbach (Swabia) Unter den Ulmen 96 Adenauerallee 124 Pfarrhaus (Remshart) Rolandstraße 67 Detmolder Sommertheater Bella Vista Tempelstraße 8 Evangelische Pfarrhaus Friedrich-Wilhelm-Straße 14 Burg Arntz Lindenstrasse 27 Haus Steineck Rectory (Hausen) Haus K. in O. Coblenzerstraße 1 (Bonn; 1830–1906) Göttingen Academy of Sciences Rolandstraße 48 Rondorfer Straße 9 Von-Weiß-Straße 8 Hauptstraße 24 (Karlstadt) Villa Dessauer Joachimstraße 6/8 Hauptstraße 8 (Karlstadt) Schloss Drachenburg Butchers' Guild Hall Villa Obenauer Kronprinzenstraße 6 Villa Kocks Adenauerallee 131 Groß-Buchholzer-Kirchweg 66 (Hannover) Villa Gustav Lohmann Pfarrhaus Scheffau Parkstraße 5 Parkstraße 8 Rectory (Altenbaindt) Rectory (Aislingen) Rectory (Deisenhofen) Rectory (Wittislingen) Tempelstrasse 10 Munich Residenz Lossow’sche Villa Haus der Begegnung Hegnenbach Pfarrhaus Rectory (Loppenhausen) Buschstraße 18 Villa Kirrmeier-Ecarius Poppelsdorfer Allee 63 Buschstraße 20 Category:Pfarrhaus Winterbach Joachimstraße 7 Kronprinzenstraße 2 Alte Winkelgasse 3 Alte Winkelgasse 17 Hauptstraße 6 Jakobstraße 105/107 Teehaus Pfarrhaus (Steinekirch) Pfarrhaus Allmannshofen Haus Heine Haardt Castle Kiefernweg 12 Feuerschlößchen Rhöndorfer Straße 87 Goethestraße 66 Parkstraße 20 Brauerei Lüdde Pfarrhaus Raiffeisenstraße 1 Eicke's House Rosenburg Upended Sugarloaf Villa Spiritus Pfarrhof (Rennertshofen) Basteistraße 18 Haus Birkhof Malteserstraße 65 Frachtstraße 1, 2, 8 (Quedlinburg) Haus Wiegand Tempelstraße 1/3 Schlößchen Degodehaus Kaiser-Friedrich-Straße 8/10 An der Läuterau 23 (Seifhennersdorf) Villa Hügel Hirschburg Pfarrhaus (Altenmünster) Pfarrhaus (Oxenbronn) Villa Friedrich Lohmann sen. Villa Friedrich Wilhelm Barth Am Südpark 47 Luisenstraße 1 Am Kurpark 7 Pfarrhaus (Hochaltingen) Landhaus Glasewaldtstraße 8 Palais Preysing Stirzenhofstraße 21 Villa Lynen Pfarrhaus (Aying) Villa Eichengrün Villa Genienau Kirchstraße 13 Rheinallee 24 Remscheider Straße 33 Adenauerallee 89b Pfarrhaus (Eppishausen) Uferstraße 29 Feldstraße 22 Lindenallee 7 Villa Bennewitz Lindenallee 70 Lindenallee 51 Am Arndtplatz 4 Rectory (Dirlewang) Rectory (Baisweil) Villa Leonhart Rectory (Apfeltrang) Rectory (Adelsried) Villa Friedrich Lohmann jun. Villa Grah rectory rectory rectory rectory rectory rectory Rolandstraße 43 Hofeshaus in der Leimbach Oberländer Ufer 208 Rheinallee 34 Kurt-Schumacher-Straße 10 Bayenthalgürtel 15 Regio-Montanus-Haus (Königsberg in Bayern) Wahnfried Marienburg Bismarckallee 15 Auf den Holln 1–3 Petrihaus Pfarrhaus (Waldkirch) Villa Monrepos Bahnhofstraße 14 Hohe Straße 19 Pfarrhaus (Haunsheim) Villa Kogge Villa Ludwigshöhe Bakehouse Fachwerkhaus Heideweg 76 (Forsbach) Rectory (Attenhausen) Rectory (Autenried) Rectory (Aystetten) Rectory (Böhen) Hauptstraße 3 (Karlstadt) Marienburger Straße 43 Haus Felseck Langes Tannen Rectory (Geisenried) Rectory (Kleinaitingen) Rectory (Eggenthal) Rectory (Ebenhofen) Rectory (Egg an der Günz) Rectory (Ettelried) Rectory (Ehingen) Römer 2-4-6 Villa Merkens Borstel Manor House villa Patermann Anzac Cottage Ashford House Saumarez Homestead Boulia Stone House Kilbirnie Homestead Martindale Hall Iandra Castle Brick Cottage, Gayndah
Tempelstrasse 10, Tempelstraße 8 and Haus Birkhof are present in Germany and Australia
Tempelstrasse 10 Tempelstraße 8 Haus Birkhof
action union
action filter_type
action find_reverse
entity Germany
relation country
type house
action filter_type
action find_reverse
entity Australia
relation country
type house
[{'concept': 'house'}, 'country', 'Germany'] [{'concept': 'house'}, 'country', 'Australia']
SELECT DISTINCT ?k WHERE { ?k property:country ?q . VALUES ( ?q ) { ( resource:Germany ) ( resource:Australia ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q15112209
P276
Q253019
USER
Where can that house be found ?
(Q15112209,P276,c(Q253019))
action filter_type
action find
entity Q15112209
relation P276
type Q253019
['Q15112209', 'P276', {'concept': 'Q253019'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q253019 . resource:Q15112209 property:P276 ?u }
Haus Birkhof
action filter_type
action find
entity Haus Birkhof
relation location
type ortsteil
['Haus Birkhof', 'location', {'concept': 'ortsteil'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:ortsteil . resource:Haus_Birkhof property:location ?u }
[]
ortsteil
Clarification for simple ques.
Q15838847
SYSTEM
Did you mean Tempelstrasse 10 ?
Q15838847 Q15838820 Q15112209
(Q15838847,P276,c(Q253019)) (Q15838820,P276,c(Q253019)) (Q15112209,P276,c(Q253019))
[ANSWER]
['Q15838847', 'P276', {'concept': 'Q253019'}] ['Q15838820', 'P276', {'concept': 'Q253019'}] ['Q15112209', 'P276', {'concept': 'Q253019'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q253019 . resource:Q15112209 property:P276 ?u }
Tempelstrasse 10 Tempelstraße 8 Haus Birkhof
Did you mean Tempelstrasse 10 ?
Tempelstrasse 10
['Tempelstrasse 10', 'location', {'concept': 'ortsteil'}] ['Tempelstraße 8', 'location', {'concept': 'ortsteil'}] ['Haus Birkhof', 'location', {'concept': 'ortsteil'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:ortsteil . resource:Haus_Birkhof property:location ?u }
[]
Simple Question (Coreferenced)
USER
No, I meant Haus Birkhof. Could you tell me the answer for that?
(Q15112209,P276,c(Q253019))
Q15112209
['Q15112209', 'P276', {'concept': 'Q253019'}]
['Haus Birkhof', 'location', {'concept': 'ortsteil'}]
[]
Q1795749
SYSTEM
Hahnwald
Q1795749
(Q15112209,P276,c(Q253019))
action filter_type
action find
entity Q15112209
relation P276
type Q253019
That house can be found in [ANSWER]
['Q15112209', 'P276', {'concept': 'Q253019'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q253019 . resource:Q15112209 property:P276 ?u }
Hahnwald
That house can be found in Hahnwald
Hahnwald
action filter_type
action find
entity Haus Birkhof
relation location
type ortsteil
['Haus Birkhof', 'location', {'concept': 'ortsteil'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:ortsteil . resource:Haus_Birkhof property:location ?u }
[]