Simple Question (Direct)
Simple Question
Q6691785
P162
Q502895
USER
Who produced Love from a Stranger ?
(Q6691785,P162,c(Q502895))
action filter_type
action find
entity Q6691785
relation P162
type Q502895
['Q6691785', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q6691785 property:P162 ?f . ?f rdf:type ontology:Q502895 }
Love from a Stranger
action filter_type
action find
entity Love from a Stranger
relation producer
type common name
['Love from a Stranger', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:Love_from_a_Stranger property:producer ?f . ?f rdf:type ontology:common_name }
[]
common name
Q2927152
SYSTEM
Bryan Foy
Q2927152
(Q6691785,P162,c(Q502895))
action filter_type
action find
entity Q6691785
relation P162
type Q502895
The [ANSWER] produced Love from a Stranger
['Q6691785', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q6691785 property:P162 ?f . ?f rdf:type ontology:Q502895 }
Bryan Foy
The Bryan Foy produced Love from a Stranger
Bryan Foy
action filter_type
action find
entity Love from a Stranger
relation producer
type common name
['Love from a Stranger', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:Love_from_a_Stranger property:producer ?f . ?f rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6691785
P800
Q502895
USER
Which person is accredited with being the author of the notable work Love from a Stranger ?
(c(Q502895),P800,Q6691785)
action filter_type
action find_reverse
entity Q6691785
relation P800
type Q502895
[{'concept': 'Q502895'}, 'P800', 'Q6691785']
SELECT DISTINCT ?l WHERE { ?l property:P800 resource:Q6691785 . ?l rdf:type ontology:Q502895 }
Love from a Stranger
action filter_type
action find_reverse
entity Love from a Stranger
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', 'Love from a Stranger']
SELECT DISTINCT ?l WHERE { ?l property:notable_work resource:Love_from_a_Stranger . ?l rdf:type ontology:common_name }
[]
common name
Q5494433
SYSTEM
Fred Allen
Q5494433
(c(Q502895),P800,Q6691785)
action filter_type
action find_reverse
entity Q6691785
relation P800
type Q502895
[ANSWER] is accredited with being the author of the notable work Love from a Stranger
[{'concept': 'Q502895'}, 'P800', 'Q6691785']
SELECT DISTINCT ?l WHERE { ?l property:P800 resource:Q6691785 . ?l rdf:type ontology:Q502895 }
Fred Allen
Fred Allen is accredited with being the author of the notable work Love from a Stranger
Fred Allen
action filter_type
action find_reverse
entity Love from a Stranger
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', 'Love from a Stranger']
SELECT DISTINCT ?l WHERE { ?l property:notable_work resource:Love_from_a_Stranger . ?l rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5494433
P20
Q56061
USER
Which administrative territory is the place of death of that person ?
(Q5494433,P20,c(Q56061))
action filter_type
action find
entity Q5494433
relation P20
type Q56061
['Q5494433', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { resource:Q5494433 property:P20 ?x . ?x rdf:type ontology:Q56061 }
Fred Allen
action filter_type
action find
entity Fred Allen
relation place of death
type administrative territorial entity
['Fred Allen', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Fred_Allen property:place_of_death ?x . ?x rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q65
SYSTEM
Los Angeles
Q65
(Q5494433,P20,c(Q56061))
action filter_type
action find
entity Q5494433
relation P20
type Q56061
[ANSWER] is the place of death of that person
['Q5494433', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { resource:Q5494433 property:P20 ?x . ?x rdf:type ontology:Q56061 }
Los Angeles
Los Angeles is the place of death of that person
Los Angeles
action filter_type
action find
entity Fred Allen
relation place of death
type administrative territorial entity
['Fred Allen', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Fred_Allen property:place_of_death ?x . ?x rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5494433
P767
Q502895
USER
Who are the people who contributed to that one ?
(Q65,P767,c(Q502895))
action filter_type
action find
entity Q5494433
relation P767
type Q502895
['Q65', 'P767', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q5494433 property:P767 ?q . ?q rdf:type ontology:Q502895 }
Fred Allen
action filter_type
action find
entity Fred Allen
relation contributor
type common name
['Los Angeles', 'contributor', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:Fred_Allen property:contributor ?q . ?q rdf:type ontology:common_name }
[]
common name
Q317574 Q942822
SYSTEM
Mack Sennett, Thomas H. Ince
Q317574 Q942822
(Q65,P767,c(Q502895))
action filter_type
action find
entity Q5494433
relation P767
type Q502895
The people contributed to that one are Prince [ANSWERS]
['Q65', 'P767', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q5494433 property:P767 ?q . ?q rdf:type ontology:Q502895 }
Mack Sennett Thomas H. Ince
The people contributed to that one are Prince Mack Sennett and Thomas H. Ince
Mack Sennett Thomas H. Ince
action filter_type
action find
entity Fred Allen
relation contributor
type common name
['Los Angeles', 'contributor', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:Fred_Allen property:contributor ?q . ?q rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q5494433
P767
Q502895
USER
Did those ones assist in Fred Allen ?
(Q5494433,P767,Q317574) (Q5494433,P767,Q942822)
action is_in
entity prev_answer
action find
entity Q5494433
relation P767
['Q5494433', 'P767', 'Q317574'] ['Q5494433', 'P767', 'Q942822']
ASK WHERE { resource:Q5494433 property:P767 ?u . VALUES ( ?u ) { ( resource:Q317574 ) ( resource:Q942822 ) } }
Fred Allen
action is_in
entity prev_answer
action find
entity Fred Allen
relation contributor
['Fred Allen', 'contributor', 'Mack Sennett'] ['Fred Allen', 'contributor', 'Thomas H. Ince']
ASK WHERE { resource:Fred_Allen property:contributor ?u . VALUES ( ?u ) { ( resource:Mack_Sennett ) ( resource:Thomas_H._Ince ) } }
[]
common name
SYSTEM
YES
(Q5494433,P767,Q317574) (Q5494433,P767,Q942822)
action is_in
entity prev_answer
action find
entity Q5494433
relation P767
[ANSWER]
['Q5494433', 'P767', 'Q317574'] ['Q5494433', 'P767', 'Q942822']
ASK WHERE { resource:Q5494433 property:P767 ?u . VALUES ( ?u ) { ( resource:Q317574 ) ( resource:Q942822 ) } }
Yes
action is_in
entity prev_answer
action find
entity Fred Allen
relation contributor
['Fred Allen', 'contributor', 'Mack Sennett'] ['Fred Allen', 'contributor', 'Thomas H. Ince']
ASK WHERE { resource:Fred_Allen property:contributor ?u . VALUES ( ?u ) { ( resource:Mack_Sennett ) ( resource:Thomas_H._Ince ) } }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q2927152 Q65 Q824715
P20
Q56061
USER
Does Bryan Foy have Los Angeles and Bobovec Rozganski as place of death ?
(Q2927152,P20,Q65) (Q2927152,P20,Q824715)
action is_in
entity Q2927152
action intersection
action find_reverse
entity Q65
relation P20
action find_reverse
entity Q824715
relation P20
['Q2927152', 'P20', 'Q65'] ['Q2927152', 'P20', 'Q824715']
ASK WHERE { resource:Q2927152 property:P20 resource:Q824715 . resource:Q2927152 property:P20 resource:Q65 }
Bryan Foy Los Angeles Bobovec Rozganski
action is_in
entity Bryan Foy
action intersection
action find_reverse
entity Los Angeles
relation place of death
action find_reverse
entity Bobovec Rozganski
relation place of death
['Bryan Foy', 'place of death', 'Los Angeles'] ['Bryan Foy', 'place of death', 'Bobovec Rozganski']
ASK WHERE { resource:Bryan_Foy property:place_of_death resource:Bobovec_Rozganski . resource:Bryan_Foy property:place_of_death resource:Los_Angeles }
[]
administrative territorial entity
SYSTEM
YES and NO respectively
(Q2927152,P20,Q65) (Q2927152,P20,Q824715)
action is_in
entity Q2927152
action intersection
action find_reverse
entity Q65
relation P20
action find_reverse
entity Q824715
relation P20
[ANSWER]
['Q2927152', 'P20', 'Q65'] ['Q2927152', 'P20', 'Q824715']
ASK WHERE { resource:Q2927152 property:P20 resource:Q824715 . resource:Q2927152 property:P20 resource:Q65 }
YES and NO respectively
action is_in
entity Bryan Foy
action intersection
action find_reverse
entity Los Angeles
relation place of death
action find_reverse
entity Bobovec Rozganski
relation place of death
['Bryan Foy', 'place of death', 'Los Angeles'] ['Bryan Foy', 'place of death', 'Bobovec Rozganski']
ASK WHERE { resource:Bryan_Foy property:place_of_death resource:Bobovec_Rozganski . resource:Bryan_Foy property:place_of_death resource:Los_Angeles }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q18952209 Q942822
P276 P19
Q56061
USER
Which administrative territories were Thomas H. Ince born in or are the locations of Zeekant ?
OR((Q942822,P19,c(Q56061)), (Q18952209,P276,c(Q56061)))
action filter_type
action union
action find
entity Q942822
relation P19
action find
entity Q18952209
relation P276
type Q56061
{'OR': [['Q942822', 'P19', {'concept': 'Q56061'}], ['Q18952209', 'P276', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q942822 property:P19 ?d } UNION { resource:Q18952209 property:P276 ?d } } . ?d rdf:type ontology:Q56061 }
Zeekant Thomas H. Ince
action filter_type
action union
action find
entity Thomas H. Ince
relation place of birth
action find
entity Zeekant
relation location
type administrative territorial entity
{'OR': [['Thomas H. Ince', 'place of birth', {'concept': 'administrative territorial entity'}], ['Zeekant', 'location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Thomas_H._Ince property:place_of_birth ?d } UNION { resource:Zeekant property:location ?d } } . ?d rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q54264 Q990130
SYSTEM
Newport, Hook of Holland
Q54264 Q990130
OR((Q942822,P19,c(Q56061)), (Q18952209,P276,c(Q56061)))
action filter_type
action union
action find
entity Q942822
relation P19
action find
entity Q18952209
relation P276
type Q56061
The [ANSWERS] were Thomas H. Ince born in or are the locations of Zeekant
{'OR': [['Q942822', 'P19', {'concept': 'Q56061'}], ['Q18952209', 'P276', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q942822 property:P19 ?d } UNION { resource:Q18952209 property:P276 ?d } } . ?d rdf:type ontology:Q56061 }
Newport Hook of Holland
The Newport and Hook of Holland were Thomas H. Ince born in or are the locations of Zeekant
Newport Hook of Holland
action filter_type
action union
action find
entity Thomas H. Ince
relation place of birth
action find
entity Zeekant
relation location
type administrative territorial entity
{'OR': [['Thomas H. Ince', 'place of birth', {'concept': 'administrative territorial entity'}], ['Zeekant', 'location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Thomas_H._Ince property:place_of_birth ?d } UNION { resource:Zeekant property:location ?d } } . ?d rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q83355
P47
Q15617994 Q56061
USER
How many administrative territories and administrative territories are bordered by Porto Recanati ?
(Q83355,P47,c(Q15617994)) (Q83355,P47,c(Q56061))
action count
action union
action filter_type
action find
entity Q83355
relation P47
type Q15617994
action filter_type
action find
entity Q83355
relation P47
type Q56061
['Q83355', 'P47', {'concept': 'Q15617994'}] ['Q83355', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) WHERE { { ?c rdf:type ontology:Q56061 . resource:Q83355 property:P47 ?c } UNION { resource:Q83355 property:P47 ?c . ?c rdf:type ontology:Q15617994 } }
Porto Recanati
action count
action union
action filter_type
action find
entity Porto Recanati
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Porto Recanati
relation shares border with
type administrative territorial entity
['Porto Recanati', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Porto Recanati', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) WHERE { { ?c rdf:type ontology:administrative_territorial_entity . resource:Porto_Recanati property:shares_border_with ?c } UNION { resource:Porto_Recanati property:shares_border_with ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
designation for an administrative territorial entity administrative territorial entity
SYSTEM
5
Q83358 Q123833 Q124456 Q124110 Q83362
(Q83355,P47,c(Q15617994)) (Q83355,P47,c(Q56061))
action count
action union
action filter_type
action find
entity Q83355
relation P47
type Q15617994
action filter_type
action find
entity Q83355
relation P47
type Q56061
[ANSWER]
['Q83355', 'P47', {'concept': 'Q15617994'}] ['Q83355', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) WHERE { { ?c rdf:type ontology:Q56061 . resource:Q83355 property:P47 ?c } UNION { resource:Q83355 property:P47 ?c . ?c rdf:type ontology:Q15617994 } }
Potenza Picena Castelfidardo Numana Loreto Recanati
5
action count
action union
action filter_type
action find
entity Porto Recanati
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Porto Recanati
relation shares border with
type administrative territorial entity
['Porto Recanati', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Porto Recanati', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) WHERE { { ?c rdf:type ontology:administrative_territorial_entity . resource:Porto_Recanati property:shares_border_with ?c } UNION { resource:Porto_Recanati property:shares_border_with ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q185632 Q83355
P190
Q515
USER
Which cities are partner town of Porto Recanati or Limassol ?
OR((c(Q515),P190,Q83355), (c(Q515),P190,Q185632))
action filter_type
action union
action find_reverse
entity Q83355
relation P190
action find_reverse
entity Q185632
relation P190
type Q515
{'OR': [[{'concept': 'Q515'}, 'P190', 'Q83355'], [{'concept': 'Q515'}, 'P190', 'Q185632']]}
SELECT DISTINCT ?v WHERE { { ?v property:P190 ?z . VALUES ( ?z ) { ( resource:Q83355 ) ( resource:Q185632 ) } } . ?v rdf:type ontology:Q515 }
Limassol Porto Recanati
action filter_type
action union
action find_reverse
entity Porto Recanati
relation sister city
action find_reverse
entity Limassol
relation sister city
type city
{'OR': [[{'concept': 'city'}, 'sister city', 'Porto Recanati'], [{'concept': 'city'}, 'sister city', 'Limassol']]}
SELECT DISTINCT ?v WHERE { { ?v property:sister_city ?z . VALUES ( ?z ) { ( resource:Porto_Recanati ) ( resource:Limassol ) } } . ?v rdf:type ontology:city }
[]
city
Q23482 Q16666 Q52607
SYSTEM
Marseille, Nanjing, Mar del Plata
Q23482 Q16666 Q52607
OR((c(Q515),P190,Q83355), (c(Q515),P190,Q185632))
action filter_type
action union
action find_reverse
entity Q83355
relation P190
action find_reverse
entity Q185632
relation P190
type Q515
[ANSWERS] are partner town of Porto Recanati or Limassol
{'OR': [[{'concept': 'Q515'}, 'P190', 'Q83355'], [{'concept': 'Q515'}, 'P190', 'Q185632']]}
SELECT DISTINCT ?v WHERE { { ?v property:P190 ?z . VALUES ( ?z ) { ( resource:Q83355 ) ( resource:Q185632 ) } } . ?v rdf:type ontology:Q515 }
Marseille Nanjing Mar del Plata
Marseille, Nanjing and Mar del Plata are partner town of Porto Recanati or Limassol
Marseille Nanjing Mar del Plata
action filter_type
action union
action find_reverse
entity Porto Recanati
relation sister city
action find_reverse
entity Limassol
relation sister city
type city
{'OR': [[{'concept': 'city'}, 'sister city', 'Porto Recanati'], [{'concept': 'city'}, 'sister city', 'Limassol']]}
SELECT DISTINCT ?v WHERE { { ?v property:sister_city ?z . VALUES ( ?z ) { ( resource:Porto_Recanati ) ( resource:Limassol ) } } . ?v rdf:type ontology:city }
[]
Clarification
Simple Question|Single Entity|Indirect
Q52607
P740
Q874405
USER
Which social group originated at that city ?
(c(Q874405),P740,Q52607)
action filter_type
action find_reverse
entity Q52607
relation P740
type Q874405
[{'concept': 'Q874405'}, 'P740', 'Q52607']
SELECT DISTINCT ?w WHERE { ?w property:P740 resource:Q52607 . ?w rdf:type ontology:Q874405 }
Mar del Plata
action filter_type
action find_reverse
entity Mar del Plata
relation location of formation
type social group
[{'concept': 'social group'}, 'location of formation', 'Mar del Plata']
SELECT DISTINCT ?w WHERE { ?w property:location_of_formation resource:Mar_del_Plata . ?w rdf:type ontology:social_group }
[]
social group
Clarification for simple ques.
Q52607
SYSTEM
Did you mean Mar del Plata ?
Q23482 Q16666 Q52607
(c(Q874405),P740,Q23482) (c(Q874405),P740,Q16666) (c(Q874405),P740,Q52607)
[ANSWER]
[{'concept': 'Q874405'}, 'P740', 'Q23482'] [{'concept': 'Q874405'}, 'P740', 'Q16666'] [{'concept': 'Q874405'}, 'P740', 'Q52607']
SELECT DISTINCT ?w WHERE { ?w property:P740 resource:Q52607 . ?w rdf:type ontology:Q874405 }
Marseille Nanjing Mar del Plata
Did you mean Mar del Plata ?
Mar del Plata
[{'concept': 'social group'}, 'location of formation', 'Marseille'] [{'concept': 'social group'}, 'location of formation', 'Nanjing'] [{'concept': 'social group'}, 'location of formation', 'Mar del Plata']
SELECT DISTINCT ?w WHERE { ?w property:location_of_formation resource:Mar_del_Plata . ?w rdf:type ontology:social_group }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q874405),P740,Q52607)
[{'concept': 'Q874405'}, 'P740', 'Q52607']
[{'concept': 'social group'}, 'location of formation', 'Mar del Plata']
[]
Q7843083
SYSTEM
Trio Galleta
Q7843083
(c(Q874405),P740,Q52607)
action filter_type
action find_reverse
entity Q52607
relation P740
type Q874405
[ANSWER] originated at that city
[{'concept': 'Q874405'}, 'P740', 'Q52607']
SELECT DISTINCT ?w WHERE { ?w property:P740 resource:Q52607 . ?w rdf:type ontology:Q874405 }
Trio Galleta
Trio Galleta originated at that city
Trio Galleta
action filter_type
action find_reverse
entity Mar del Plata
relation location of formation
type social group
[{'concept': 'social group'}, 'location of formation', 'Mar del Plata']
SELECT DISTINCT ?w WHERE { ?w property:location_of_formation resource:Mar_del_Plata . ?w rdf:type ontology:social_group }
[]