Simple Question (Direct)
Simple Question
Q317237
P26
Q502895
USER
Which person is the spouse of Harpo Marx ?
(Q317237,P26,c(Q502895))
action filter_type
action find
entity Q317237
relation P26
type Q502895
['Q317237', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { resource:Q317237 property:P26 ?x . ?x rdf:type ontology:Q502895 }
Harpo Marx
action filter_type
action find
entity Harpo Marx
relation spouse
type common name
['Harpo Marx', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { resource:Harpo_Marx property:spouse ?x . ?x rdf:type ontology:common_name }
[]
common name
Q7647833
SYSTEM
Susan Fleming
Q7647833
(Q317237,P26,c(Q502895))
action filter_type
action find
entity Q317237
relation P26
type Q502895
[ANSWER] is the spouse of Harpo Marx
['Q317237', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { resource:Q317237 property:P26 ?x . ?x rdf:type ontology:Q502895 }
Susan Fleming
Susan Fleming is the spouse of Harpo Marx
Susan Fleming
action filter_type
action find
entity Harpo Marx
relation spouse
type common name
['Harpo Marx', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { resource:Harpo_Marx property:spouse ?x . ?x rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7647833
P161
Q838948
USER
Which works of art stars that person as actor ?
(c(Q838948),P161,Q7647833)
action filter_type
action find_reverse
entity Q7647833
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q7647833']
SELECT DISTINCT ?x WHERE { ?x property:P161 resource:Q7647833 . ?x rdf:type ontology:Q838948 }
Susan Fleming
action filter_type
action find_reverse
entity Susan Fleming
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Susan Fleming']
SELECT DISTINCT ?x WHERE { ?x property:cast_member resource:Susan_Fleming . ?x rdf:type ontology:work_of_art }
[]
work of art
Q1931427 Q19363619
SYSTEM
Million Dollar Legs, He Learned About Women
Q1931427 Q19363619
(c(Q838948),P161,Q7647833)
action filter_type
action find_reverse
entity Q7647833
relation P161
type Q838948
[ANSWERS] star that person as actor
[{'concept': 'Q838948'}, 'P161', 'Q7647833']
SELECT DISTINCT ?x WHERE { ?x property:P161 resource:Q7647833 . ?x rdf:type ontology:Q838948 }
Million Dollar Legs He Learned About Women
Million Dollar Legs and He Learned About Women star that person as actor
Million Dollar Legs He Learned About Women
action filter_type
action find_reverse
entity Susan Fleming
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Susan Fleming']
SELECT DISTINCT ?x WHERE { ?x property:cast_member resource:Susan_Fleming . ?x rdf:type ontology:work_of_art }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1931427
P162
Q502895
USER
Who are the producers of Million Dollar Legs ?
(Q1931427,P162,c(Q502895))
action filter_type
action find
entity Q1931427
relation P162
type Q502895
['Q1931427', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q1931427 property:P162 ?t . ?t rdf:type ontology:Q502895 }
Million Dollar Legs
action filter_type
action find
entity Million Dollar Legs
relation producer
type common name
['Million Dollar Legs', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Million_Dollar_Legs property:producer ?t . ?t rdf:type ontology:common_name }
[]
common name
Q285357 Q956533
SYSTEM
B. P. Schulberg, Herman J. Mankiewicz
Q285357 Q956533
(Q1931427,P162,c(Q502895))
action filter_type
action find
entity Q1931427
relation P162
type Q502895
The producers of Million Dollar Legs are John [ANSWERS]
['Q1931427', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q1931427 property:P162 ?t . ?t rdf:type ontology:Q502895 }
B. P. Schulberg Herman J. Mankiewicz
The producers of Million Dollar Legs are John B. P. Schulberg and Herman J. Mankiewicz
B. P. Schulberg Herman J. Mankiewicz
action filter_type
action find
entity Million Dollar Legs
relation producer
type common name
['Million Dollar Legs', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Million_Dollar_Legs property:producer ?t . ?t rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q7899630
Q502895
USER
And also tell me about Uran Khatola?
(Q7899630,P162,c(Q502895))
action filter_type
action find
entity Q7899630
relation P162
type Q502895
['Q7899630', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q7899630 property:P162 ?l . ?l rdf:type ontology:Q502895 }
Uran Khatola
action filter_type
action find
entity Uran Khatola
relation producer
type common name
['Uran Khatola', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:Uran_Khatola property:producer ?l . ?l rdf:type ontology:common_name }
[]
common name
Q674337
SYSTEM
Naushad
Q674337
(Q7899630,P162,c(Q502895))
action filter_type
action find
entity Q7899630
relation P162
type Q502895
[ANSWER]
['Q7899630', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q7899630 property:P162 ?l . ?l rdf:type ontology:Q502895 }
Naushad
Naushad
action filter_type
action find
entity Uran Khatola
relation producer
type common name
['Uran Khatola', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:Uran_Khatola property:producer ?l . ?l rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q838948 Q386724 Q838948
USER
Which works of art are depicted in exactly 1 works or works of art ?
(c(Q386724)|c(Q838948),P180,c(Q838948))
action equal
action union
action find_reverse_tuple_counts
relation P180
type Q838948
type Q386724
action find_reverse_tuple_counts
relation P180
type Q838948
type Q838948
value 1
[[{'concept': 'Q386724'}, {'concept': 'Q838948'}], 'P180', {'concept': 'Q838948'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?v ) AS ?g ) WHERE { { ?q rdf:type ontology:Q838948 . ?v rdf:type ontology:Q386724 . ?v property:P180 ?q } UNION { ?v property:P180 ?q . ?q rdf:type ontology:Q838948 . ?v rdf:type ontology:Q838948 } } GROUP BY ?q } . FILTER ( ?g = 1 ) }
action equal
action union
action find_reverse_tuple_counts
relation depicts
type work of art
type work
action find_reverse_tuple_counts
relation depicts
type work of art
type work of art
value 1
[[{'concept': 'work'}, {'concept': 'work of art'}], 'depicts', {'concept': 'work of art'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?v ) AS ?g ) WHERE { { ?q rdf:type ontology:work_of_art . ?v rdf:type ontology:work . ?v property:depicts ?q } UNION { ?v property:depicts ?q . ?q rdf:type ontology:work_of_art . ?v rdf:type ontology:work_of_art } } GROUP BY ?q } . FILTER ( ?g = 1 ) }
[]
work of art work work of art
Q3497617 Q2551806 Q179900
SYSTEM
equestrian statue of Joan of Arc, Belvedere Torso, David
Q143912 Q23770419 Q1064990 Q3497617 Q831869 Q324926 Q3013723 Q17305006 Q2551806 Q9764 Q179900 Q1350279 Q18177089 Q492461 Q1349065 Q397447 Q183272
(c(Q386724)|c(Q838948),P180,c(Q838948))
action equal
action union
action find_reverse_tuple_counts
relation P180
type Q838948
type Q386724
action find_reverse_tuple_counts
relation P180
type Q838948
type Q838948
value 1
The [ANSWERS] are depicted in exactly 1 works or works of art
[[{'concept': 'Q386724'}, {'concept': 'Q838948'}], 'P180', {'concept': 'Q838948'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?v ) AS ?g ) WHERE { { ?q rdf:type ontology:Q838948 . ?v rdf:type ontology:Q386724 . ?v property:P180 ?q } UNION { ?v property:P180 ?q . ?q rdf:type ontology:Q838948 . ?v rdf:type ontology:Q838948 } } GROUP BY ?q } . FILTER ( ?g = 1 ) }
triumphal arch Bear Hunter Monument aux Girondins equestrian statue of Joan of Arc oenochoe fibula The Railrodder Galatea Belvedere Torso flamenco David pyxis Dénicheur d'oursons kalathos Passion play torc frieze
The equestrian statue of Joan of Arc, Belvedere Torso and David are depicted in exactly 1 works or works of art
equestrian statue of Joan of Arc Belvedere Torso David
action equal
action union
action find_reverse_tuple_counts
relation depicts
type work of art
type work
action find_reverse_tuple_counts
relation depicts
type work of art
type work of art
value 1
[[{'concept': 'work'}, {'concept': 'work of art'}], 'depicts', {'concept': 'work of art'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?v ) AS ?g ) WHERE { { ?q rdf:type ontology:work_of_art . ?v rdf:type ontology:work . ?v property:depicts ?q } UNION { ?v property:depicts ?q . ?q rdf:type ontology:work_of_art . ?v rdf:type ontology:work_of_art } } GROUP BY ?q } . FILTER ( ?g = 1 ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q3497617
P800
Q502895
USER
Which person has that one as a notable work ?
(c(Q502895),P800,Q3497617)
action filter_type
action find_reverse
entity Q3497617
relation P800
type Q502895
[{'concept': 'Q502895'}, 'P800', 'Q3497617']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q502895 . ?n property:P800 resource:Q3497617 }
equestrian statue of Joan of Arc
action filter_type
action find_reverse
entity equestrian statue of Joan of Arc
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', 'equestrian statue of Joan of Arc']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:common_name . ?n property:notable_work resource:equestrian_statue_of_Joan_of_Arc }
[]
common name
Clarification for simple ques.
Q179900
SYSTEM
Did you mean David ?
Q3497617 Q2551806 Q179900
(c(Q502895),P800,Q3497617) (c(Q502895),P800,Q2551806) (c(Q502895),P800,Q179900)
[ANSWER]
[{'concept': 'Q502895'}, 'P800', 'Q3497617'] [{'concept': 'Q502895'}, 'P800', 'Q2551806'] [{'concept': 'Q502895'}, 'P800', 'Q179900']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q502895 . ?n property:P800 resource:Q3497617 }
equestrian statue of Joan of Arc Belvedere Torso David
Did you mean David ?
David
[{'concept': 'common name'}, 'notable work', 'equestrian statue of Joan of Arc'] [{'concept': 'common name'}, 'notable work', 'Belvedere Torso'] [{'concept': 'common name'}, 'notable work', 'David']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:common_name . ?n property:notable_work resource:equestrian_statue_of_Joan_of_Arc }
[]
Simple Question (Coreferenced)
USER
No, I meant equestrian statue of Joan of Arc. Could you tell me the answer for that?
(c(Q502895),P800,Q3497617)
Q3497617
[{'concept': 'Q502895'}, 'P800', 'Q3497617']
[{'concept': 'common name'}, 'notable work', 'equestrian statue of Joan of Arc']
[]
Q499022
SYSTEM
Emmanuel Fremiet
Q499022
(c(Q502895),P800,Q3497617)
action filter_type
action find_reverse
entity Q3497617
relation P800
type Q502895
[ANSWER] has that one as a notable work
[{'concept': 'Q502895'}, 'P800', 'Q3497617']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q502895 . ?n property:P800 resource:Q3497617 }
Emmanuel Fremiet
Emmanuel Fremiet has that one as a notable work
Emmanuel Fremiet
action filter_type
action find_reverse
entity equestrian statue of Joan of Arc
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', 'equestrian statue of Joan of Arc']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:common_name . ?n property:notable_work resource:equestrian_statue_of_Joan_of_Arc }
[]