Simple Question (Direct)
Simple Question
Q1957330
P344
Q502895
USER
Who is the director of photography for Man Is a Woman ?
(Q1957330,P344,c(Q502895))
action filter_type
action find
entity Q1957330
relation P344
type Q502895
['Q1957330', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q502895 . resource:Q1957330 property:P344 ?l }
Man Is a Woman
action filter_type
action find
entity Man Is a Woman
relation director of photography
type common name
['Man Is a Woman', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:common_name . resource:Man_Is_a_Woman property:director_of_photography ?l }
[]
common name
Q3610
SYSTEM
Pierre Aïm
Q3610
(Q1957330,P344,c(Q502895))
action filter_type
action find
entity Q1957330
relation P344
type Q502895
The director of photography for Man is the [ANSWER]
['Q1957330', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q502895 . resource:Q1957330 property:P344 ?l }
Pierre Aïm
The director of photography for Man is the Pierre Aïm
Pierre Aïm
action filter_type
action find
entity Man Is a Woman
relation director of photography
type common name
['Man Is a Woman', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:common_name . resource:Man_Is_a_Woman property:director_of_photography ?l }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3610
P19
Q56061
USER
Which administrative territory is the birthplace of that person ?
(Q3610,P19,c(Q56061))
action filter_type
action find
entity Q3610
relation P19
type Q56061
['Q3610', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q56061 . resource:Q3610 property:P19 ?p }
Pierre Aïm
action filter_type
action find
entity Pierre Aïm
relation place of birth
type administrative territorial entity
['Pierre Aïm', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:administrative_territorial_entity . resource:Pierre_Aïm property:place_of_birth ?p }
[]
administrative territorial entity
Q90
SYSTEM
Paris
Q90
(Q3610,P19,c(Q56061))
action filter_type
action find
entity Q3610
relation P19
type Q56061
[ANSWER] is the birthplace of that person
['Q3610', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q56061 . resource:Q3610 property:P19 ?p }
Paris
Paris is the birthplace of that person
Paris
action filter_type
action find
entity Pierre Aïm
relation place of birth
type administrative territorial entity
['Pierre Aïm', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:administrative_territorial_entity . resource:Pierre_Aïm property:place_of_birth ?p }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q90 Q1684642
P6
Q502895
USER
Does Jean-Baptiste Fleuriot-Lescot have that administrative territory as its head of government ?
(Q90,P6,Q1684642)
action is_in
entity Q1684642
action find
entity Q90
relation P6
['Q90', 'P6', 'Q1684642']
ASK WHERE { resource:Q90 property:P6 resource:Q1684642 }
Paris Jean-Baptiste Fleuriot-Lescot
action is_in
entity Jean-Baptiste Fleuriot-Lescot
action find
entity Paris
relation head of government
['Paris', 'head of government', 'Jean-Baptiste Fleuriot-Lescot']
ASK WHERE { resource:Paris property:head_of_government resource:Jean-Baptiste_Fleuriot-Lescot }
[]
common name
SYSTEM
YES
(Q90,P6,Q1684642)
action is_in
entity Q1684642
action find
entity Q90
relation P6
[ANSWER]
['Q90', 'P6', 'Q1684642']
ASK WHERE { resource:Q90 property:P6 resource:Q1684642 }
Yes
action is_in
entity Jean-Baptiste Fleuriot-Lescot
action find
entity Paris
relation head of government
['Paris', 'head of government', 'Jean-Baptiste Fleuriot-Lescot']
ASK WHERE { resource:Paris property:head_of_government resource:Jean-Baptiste_Fleuriot-Lescot }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q3610 Q1032540
P344
Q838948
USER
How many works of art have Pierre Aïm or Canal+ as cinematographer ?
(c(Q838948),P344,Q3610) (c(Q838948),P344,Q1032540)
action count
action union
action filter_type
action find_reverse
entity Q3610
relation P344
type Q838948
action filter_type
action find_reverse
entity Q1032540
relation P344
type Q838948
[{'concept': 'Q838948'}, 'P344', 'Q3610'] [{'concept': 'Q838948'}, 'P344', 'Q1032540']
SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) WHERE { ?v property:P344 ?a . VALUES ( ?a ) { ( resource:Q3610 ) ( resource:Q1032540 ) } }
Pierre Aïm Canal+
action count
action union
action filter_type
action find_reverse
entity Pierre Aïm
relation director of photography
type work of art
action filter_type
action find_reverse
entity Canal+
relation director of photography
type work of art
[{'concept': 'work of art'}, 'director of photography', 'Pierre Aïm'] [{'concept': 'work of art'}, 'director of photography', 'Canal+']
SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) WHERE { ?v property:director_of_photography ?a . VALUES ( ?a ) { ( resource:Pierre_Aïm ) ( resource:Canal+ ) } }
[]
work of art
SYSTEM
15
Q820754 Q59634 Q1957330 Q3321427 Q250447 Q1670772 Q466101 Q83703 Q1262927 Q494719 Q3400410 Q972072 Q1144330 Q3333749 Q14901478
(c(Q838948),P344,Q3610) (c(Q838948),P344,Q1032540)
action count
action union
action filter_type
action find_reverse
entity Q3610
relation P344
type Q838948
action filter_type
action find_reverse
entity Q1032540
relation P344
type Q838948
[ANSWER]
[{'concept': 'Q838948'}, 'P344', 'Q3610'] [{'concept': 'Q838948'}, 'P344', 'Q1032540']
SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) WHERE { ?v property:P344 ?a . VALUES ( ?a ) { ( resource:Q3610 ) ( resource:Q1032540 ) } }
Jaffa Not Here to Be Loved Man Is a Woman Monsieur N. Nothing to Declare Samourais La Haine He Loves Me... He Loves Me Not Polisse In July Pour Sacha Assassin(s) Bienvenue chez les Ch'tis Métisse 16 ans... ou presque
15
action count
action union
action filter_type
action find_reverse
entity Pierre Aïm
relation director of photography
type work of art
action filter_type
action find_reverse
entity Canal+
relation director of photography
type work of art
[{'concept': 'work of art'}, 'director of photography', 'Pierre Aïm'] [{'concept': 'work of art'}, 'director of photography', 'Canal+']
SELECT DISTINCT ( COUNT ( ?v ) AS ?m ) WHERE { ?v property:director_of_photography ?a . VALUES ( ?a ) { ( resource:Pierre_Aïm ) ( resource:Canal+ ) } }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q64 Q90
P840
Q838948
USER
Which works of art have a setting location of Paris and Berlin ?
AND((c(Q838948),P840,Q90), (c(Q838948),P840,Q64))
action filter_type
action intersection
action find_reverse
entity Q90
relation P840
action find_reverse
entity Q64
relation P840
type Q838948
{'AND': [[{'concept': 'Q838948'}, 'P840', 'Q90'], [{'concept': 'Q838948'}, 'P840', 'Q64']]}
SELECT DISTINCT ?e WHERE { ?e property:P840 resource:Q90 . ?e property:P840 resource:Q64 . ?e rdf:type ontology:Q838948 }
Berlin Paris
action filter_type
action intersection
action find_reverse
entity Paris
relation narrative location
action find_reverse
entity Berlin
relation narrative location
type work of art
{'AND': [[{'concept': 'work of art'}, 'narrative location', 'Paris'], [{'concept': 'work of art'}, 'narrative location', 'Berlin']]}
SELECT DISTINCT ?e WHERE { ?e property:narrative_location resource:Paris . ?e property:narrative_location resource:Berlin . ?e rdf:type ontology:work_of_art }
[]
work of art
Q1475617 Q1455551 Q642559
SYSTEM
The Young Lions, Obsession, EuroTrip
Q1475617 Q1455551 Q642559
AND((c(Q838948),P840,Q90), (c(Q838948),P840,Q64))
action filter_type
action intersection
action find_reverse
entity Q90
relation P840
action find_reverse
entity Q64
relation P840
type Q838948
[ANSWERS] have a setting location of Paris and Berlin
{'AND': [[{'concept': 'Q838948'}, 'P840', 'Q90'], [{'concept': 'Q838948'}, 'P840', 'Q64']]}
SELECT DISTINCT ?e WHERE { ?e property:P840 resource:Q90 . ?e property:P840 resource:Q64 . ?e rdf:type ontology:Q838948 }
The Young Lions Obsession EuroTrip
The Young Lions, Obsession and EuroTrip have a setting location of Paris and Berlin
The Young Lions Obsession EuroTrip
action filter_type
action intersection
action find_reverse
entity Paris
relation narrative location
action find_reverse
entity Berlin
relation narrative location
type work of art
{'AND': [[{'concept': 'work of art'}, 'narrative location', 'Paris'], [{'concept': 'work of art'}, 'narrative location', 'Berlin']]}
SELECT DISTINCT ?e WHERE { ?e property:narrative_location resource:Paris . ?e property:narrative_location resource:Berlin . ?e rdf:type ontology:work_of_art }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q64
P609
Q83620
USER
Which thoroughfare has Berlin as its terminus location ?
(c(Q83620),P609,Q1475617) (c(Q83620),P609,Q1455551) (c(Q83620),P609,Q642559)
action filter_type
action find_reverse
entity Q64
relation P609
type Q83620
[{'concept': 'Q83620'}, 'P609', 'Q1475617'] [{'concept': 'Q83620'}, 'P609', 'Q1455551'] [{'concept': 'Q83620'}, 'P609', 'Q642559']
SELECT DISTINCT ?r WHERE { ?r property:P609 resource:Q64 . ?r rdf:type ontology:Q83620 }
Berlin
action filter_type
action find_reverse
entity Berlin
relation terminus location
type thoroughfare
[{'concept': 'thoroughfare'}, 'terminus location', 'The Young Lions'] [{'concept': 'thoroughfare'}, 'terminus location', 'Obsession'] [{'concept': 'thoroughfare'}, 'terminus location', 'EuroTrip']
SELECT DISTINCT ?r WHERE { ?r property:terminus_location resource:Berlin . ?r rdf:type ontology:thoroughfare }
[]
thoroughfare
Q14378572
SYSTEM
Cycling route Berlin–Leipzig
Q14378572
(c(Q83620),P609,Q1475617) (c(Q83620),P609,Q1455551) (c(Q83620),P609,Q642559)
action filter_type
action find_reverse
entity Q64
relation P609
type Q83620
[ANSWER] has Berlin as its terminus location
[{'concept': 'Q83620'}, 'P609', 'Q1475617'] [{'concept': 'Q83620'}, 'P609', 'Q1455551'] [{'concept': 'Q83620'}, 'P609', 'Q642559']
SELECT DISTINCT ?r WHERE { ?r property:P609 resource:Q64 . ?r rdf:type ontology:Q83620 }
Cycling route Berlin–Leipzig
Cycling route Berlin–Leipzig has Berlin as its terminus location
Cycling route Berlin–Leipzig
action filter_type
action find_reverse
entity Berlin
relation terminus location
type thoroughfare
[{'concept': 'thoroughfare'}, 'terminus location', 'The Young Lions'] [{'concept': 'thoroughfare'}, 'terminus location', 'Obsession'] [{'concept': 'thoroughfare'}, 'terminus location', 'EuroTrip']
SELECT DISTINCT ?r WHERE { ?r property:terminus_location resource:Berlin . ?r rdf:type ontology:thoroughfare }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1623013
P47
Q1048835
USER
Which political territories do Reocín share a border with ?
(c(Q1048835),P47,Q1623013)
action filter_type
action find_reverse
entity Q1623013
relation P47
type Q1048835
[{'concept': 'Q1048835'}, 'P47', 'Q1623013']
SELECT DISTINCT ?v WHERE { ?v property:P47 resource:Q1623013 . ?v rdf:type ontology:Q1048835 }
Reocín
action filter_type
action find_reverse
entity Reocín
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Reocín']
SELECT DISTINCT ?v WHERE { ?v property:shares_border_with resource:Reocín . ?v rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1595886 Q1391437
SYSTEM
Mazcuerras, Alfoz de Lloredo
Q1595886 Q1391437
(c(Q1048835),P47,Q1623013)
action filter_type
action find_reverse
entity Q1623013
relation P47
type Q1048835
[ANSWERS] Reocín share a border with
[{'concept': 'Q1048835'}, 'P47', 'Q1623013']
SELECT DISTINCT ?v WHERE { ?v property:P47 resource:Q1623013 . ?v rdf:type ontology:Q1048835 }
Mazcuerras Alfoz de Lloredo
Mazcuerras and Alfoz de Lloredo Reocín share a border with
Mazcuerras Alfoz de Lloredo
action filter_type
action find_reverse
entity Reocín
relation shares border with
type political territorial entity
[{'concept': 'political territorial entity'}, 'shares border with', 'Reocín']
SELECT DISTINCT ?v WHERE { ?v property:shares_border_with resource:Reocín . ?v rdf:type ontology:political_territorial_entity }
[]