Simple Question (Direct)
Simple Question
Q223887
P57
Q502895
USER
Who was Face/Off directed by ?
(Q223887,P57,c(Q502895))
action filter_type
action find
entity Q223887
relation P57
type Q502895
['Q223887', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q502895 . resource:Q223887 property:P57 ?m }
Face/Off
action filter_type
action find
entity Face/Off
relation director
type common name
['Face/Off', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:common_name . resource:Face/Off property:director ?m }
[]
common name
Q55432
SYSTEM
John Woo
Q55432
(Q223887,P57,c(Q502895))
action filter_type
action find
entity Q223887
relation P57
type Q502895
Was Off directed by [ANSWER] by
['Q223887', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q502895 . resource:Q223887 property:P57 ?m }
John Woo
Was Off directed by John Woo by
John Woo
action filter_type
action find
entity Face/Off
relation director
type common name
['Face/Off', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:common_name . resource:Face/Off property:director ?m }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q223887
P840
Q852446
USER
Which narrative location is that work of art set in ?
(Q55432,P840,c(Q852446))
action filter_type
action find
entity Q223887
relation P840
type Q852446
['Q55432', 'P840', {'concept': 'Q852446'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q852446 . resource:Q223887 property:P840 ?c }
Face/Off
action filter_type
action find
entity Face/Off
relation narrative location
type administrative territorial entity of the United States
['John Woo', 'narrative location', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:administrative_territorial_entity_of_the_United_States . resource:Face/Off property:narrative_location ?c }
[]
administrative territorial entity of the United States
Q99
SYSTEM
California
Q99
(Q55432,P840,c(Q852446))
action filter_type
action find
entity Q223887
relation P840
type Q852446
That work of art is set in [ANSWER]
['Q55432', 'P840', {'concept': 'Q852446'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q852446 . resource:Q223887 property:P840 ?c }
California
That work of art is set in California
California
action filter_type
action find
entity Face/Off
relation narrative location
type administrative territorial entity of the United States
['John Woo', 'narrative location', {'concept': 'administrative territorial entity of the United States'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:administrative_territorial_entity_of_the_United_States . resource:Face/Off property:narrative_location ?c }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q100272 Q99
P19 P17
Q15617994
USER
Which administrative territories are California located in or were Sigisbert Kraft born in ?
OR((Q99,P17,c(Q15617994)), (Q100272,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q99
relation P17
action find
entity Q100272
relation P19
type Q15617994
{'OR': [['Q99', 'P17', {'concept': 'Q15617994'}], ['Q100272', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q99 property:P17 ?l } UNION { resource:Q100272 property:P19 ?l } } . ?l rdf:type ontology:Q15617994 }
Sigisbert Kraft California
action filter_type
action union
action find
entity California
relation country
action find
entity Sigisbert Kraft
relation place of birth
type designation for an administrative territorial entity
{'OR': [['California', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Sigisbert Kraft', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { { resource:California property:country ?l } UNION { resource:Sigisbert_Kraft property:place_of_birth ?l } } . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q285879
SYSTEM
United States of America, Bingen am Rhein
Q30 Q285879
OR((Q99,P17,c(Q15617994)), (Q100272,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q99
relation P17
action find
entity Q100272
relation P19
type Q15617994
California are located born the [ANSWERS]
{'OR': [['Q99', 'P17', {'concept': 'Q15617994'}], ['Q100272', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q99 property:P17 ?l } UNION { resource:Q100272 property:P19 ?l } } . ?l rdf:type ontology:Q15617994 }
United States of America Bingen am Rhein
California are located born the United States of America and Bingen am Rhein
United States of America Bingen am Rhein
action filter_type
action union
action find
entity California
relation country
action find
entity Sigisbert Kraft
relation place of birth
type designation for an administrative territorial entity
{'OR': [['California', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Sigisbert Kraft', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { { resource:California property:country ?l } UNION { resource:Sigisbert_Kraft property:place_of_birth ?l } } . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P1346
Q15061650 Q198
USER
How many golf tournaments or wars were won by that administrative territory ?
(c(Q15061650),P1346,Q30) (c(Q198),P1346,Q30) (c(Q15061650),P1346,Q30) (c(Q198),P1346,Q30) (c(Q15061650),P1346,Q285879) (c(Q198),P1346,Q285879)
[{'concept': 'Q15061650'}, 'P1346', 'Q30'] [{'concept': 'Q198'}, 'P1346', 'Q30'] [{'concept': 'Q15061650'}, 'P1346', 'Q30'] [{'concept': 'Q198'}, 'P1346', 'Q30'] [{'concept': 'Q15061650'}, 'P1346', 'Q285879'] [{'concept': 'Q198'}, 'P1346', 'Q285879']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:Q18560095 resource:Q30 } UNION { ?y property:Q18560095 resource:Q30 } UNION { ?z property:Q18560095 resource:Q30 } UNION { ?y property:Q18560095 resource:Q30 } UNION { ?z property:Q18560095 resource:Q285879 } UNION { ?y property:Q18560095 resource:Q285879 } } . ?z rdf:type ontology:Q15061650 . ?y rdf:type ontology:Q26883397 }
[{'concept': 'golf tournament'}, 'winner', 'United States of America'] [{'concept': 'war'}, 'winner', 'United States of America'] [{'concept': 'golf tournament'}, 'winner', 'United States of America'] [{'concept': 'war'}, 'winner', 'United States of America'] [{'concept': 'golf tournament'}, 'winner', 'Bingen am Rhein'] [{'concept': 'war'}, 'winner', 'Bingen am Rhein']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:winner resource:United_States_of_America } UNION { ?y property:winner resource:United_States_of_America } UNION { ?z property:winner resource:United_States_of_America } UNION { ?y property:winner resource:United_States_of_America } UNION { ?z property:winner resource:Bingen_am_Rhein } UNION { ?y property:winner resource:Bingen_am_Rhein } } . ?z rdf:type ontology:golf_tournament . ?y rdf:type ontology:war }
[]
golf tournament war
Quantitative|Count|Mult. entity type|Clarification
Q285879
SYSTEM
Did you mean Bingen am Rhein ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:Q18560095 resource:Q30 } UNION { ?y property:Q18560095 resource:Q30 } UNION { ?z property:Q18560095 resource:Q30 } UNION { ?y property:Q18560095 resource:Q30 } UNION { ?z property:Q18560095 resource:Q285879 } UNION { ?y property:Q18560095 resource:Q285879 } } . ?z rdf:type ontology:Q15061650 . ?y rdf:type ontology:Q26883397 }
Did you mean Bingen am Rhein ?
Bingen am Rhein
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:winner resource:United_States_of_America } UNION { ?y property:winner resource:United_States_of_America } UNION { ?z property:winner resource:United_States_of_America } UNION { ?y property:winner resource:United_States_of_America } UNION { ?z property:winner resource:Bingen_am_Rhein } UNION { ?y property:winner resource:Bingen_am_Rhein } } . ?z rdf:type ontology:golf_tournament . ?y rdf:type ontology:war }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant United States of America. Could you tell me the answer for that?
(c(Q15061650),P1346,Q30) (c(Q198),P1346,Q30) (c(Q15061650),P1346,Q30) (c(Q198),P1346,Q30) (c(Q15061650),P1346,Q285879) (c(Q198),P1346,Q285879)
Q30
[{'concept': 'Q15061650'}, 'P1346', 'Q30'] [{'concept': 'Q198'}, 'P1346', 'Q30'] [{'concept': 'Q15061650'}, 'P1346', 'Q30'] [{'concept': 'Q198'}, 'P1346', 'Q30'] [{'concept': 'Q15061650'}, 'P1346', 'Q285879'] [{'concept': 'Q198'}, 'P1346', 'Q285879']
[{'concept': 'golf tournament'}, 'winner', 'United States of America'] [{'concept': 'war'}, 'winner', 'United States of America'] [{'concept': 'golf tournament'}, 'winner', 'United States of America'] [{'concept': 'war'}, 'winner', 'United States of America'] [{'concept': 'golf tournament'}, 'winner', 'Bingen am Rhein'] [{'concept': 'war'}, 'winner', 'Bingen am Rhein']
[]
SYSTEM
27
Q3453900 Q3453902 Q8683 Q3453909 Q3453908 Q3453896 Q3453913 Q4571206 Q4572000 Q919786 Q4569702 Q3943126 Q3453898 Q4570452 Q3943120 Q3453893 Q14710308 Q3943123 Q3453897 Q3943124 Q3943127 Q4568450 Q3943125 Q3453899 Q3943117 Q3943130 Q600731
(c(Q15061650),P1346,Q30) (c(Q198),P1346,Q30) (c(Q15061650),P1346,Q30) (c(Q198),P1346,Q30) (c(Q15061650),P1346,Q285879) (c(Q198),P1346,Q285879)
[ANSWER]
[{'concept': 'Q15061650'}, 'P1346', 'Q30'] [{'concept': 'Q198'}, 'P1346', 'Q30'] [{'concept': 'Q15061650'}, 'P1346', 'Q30'] [{'concept': 'Q198'}, 'P1346', 'Q30'] [{'concept': 'Q15061650'}, 'P1346', 'Q285879'] [{'concept': 'Q198'}, 'P1346', 'Q285879']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:Q18560095 resource:Q30 } UNION { ?y property:Q18560095 resource:Q30 } UNION { ?z property:Q18560095 resource:Q30 } UNION { ?y property:Q18560095 resource:Q30 } UNION { ?z property:Q18560095 resource:Q285879 } UNION { ?y property:Q18560095 resource:Q285879 } } . ?z rdf:type ontology:Q15061650 . ?y rdf:type ontology:Q26883397 }
1981 Ryder Cup 1983 Ryder Cup Cold War 1993 Ryder Cup 1991 Ryder Cup 1971 Ryder Cup 1999 Ryder Cup 1963 Ryder Cup 1965 Ryder Cup 2008 Ryder Cup 1959 Ryder Cup 1949 Ryder Cup 1975 Ryder Cup 1961 Ryder Cup 1931 Ryder Cup 1969 Ryder Cup 1967 Ryder Cup 1935 Ryder Cup 1973 Ryder Cup 1937 Ryder Cup 1951 Ryder Cup 1955 Ryder Cup 1947 Ryder Cup 1979 Ryder Cup 1927 Ryder Cup 1953 Ryder Cup 1977 Ryder Cup
27
[{'concept': 'golf tournament'}, 'winner', 'United States of America'] [{'concept': 'war'}, 'winner', 'United States of America'] [{'concept': 'golf tournament'}, 'winner', 'United States of America'] [{'concept': 'war'}, 'winner', 'United States of America'] [{'concept': 'golf tournament'}, 'winner', 'Bingen am Rhein'] [{'concept': 'war'}, 'winner', 'Bingen am Rhein']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:winner resource:United_States_of_America } UNION { ?y property:winner resource:United_States_of_America } UNION { ?z property:winner resource:United_States_of_America } UNION { ?y property:winner resource:United_States_of_America } UNION { ?z property:winner resource:Bingen_am_Rhein } UNION { ?y property:winner resource:Bingen_am_Rhein } } . ?z rdf:type ontology:golf_tournament . ?y rdf:type ontology:war }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q30 Q21
P840
Q166142
USER
How many applications have their narrative set in United States of America and England ?
(c(Q166142),P840,Q30) (c(Q166142),P840,Q21)
action count
action intersection
action filter_type
action find_reverse
entity Q30
relation P840
type Q166142
action filter_type
action find_reverse
entity Q21
relation P840
type Q166142
[{'concept': 'Q166142'}, 'P840', 'Q30'] [{'concept': 'Q166142'}, 'P840', 'Q21']
SELECT DISTINCT ( COUNT ( ?v ) AS ?o ) WHERE { ?v property:P840 resource:Q30 . ?v rdf:type ontology:Q166142 . ?v property:P840 resource:Q21 . ?v rdf:type ontology:Q166142 }
United States of America England
action count
action intersection
action filter_type
action find_reverse
entity United States of America
relation narrative location
type application
action filter_type
action find_reverse
entity England
relation narrative location
type application
[{'concept': 'application'}, 'narrative location', 'United States of America'] [{'concept': 'application'}, 'narrative location', 'England']
SELECT DISTINCT ( COUNT ( ?v ) AS ?o ) WHERE { ?v property:narrative_location resource:United_States_of_America . ?v rdf:type ontology:application . ?v property:narrative_location resource:England . ?v rdf:type ontology:application }
[]
application
SYSTEM
2
Q791439 Q4104
(c(Q166142),P840,Q30) (c(Q166142),P840,Q21)
action count
action intersection
action filter_type
action find_reverse
entity Q30
relation P840
type Q166142
action filter_type
action find_reverse
entity Q21
relation P840
type Q166142
[ANSWER]
[{'concept': 'Q166142'}, 'P840', 'Q30'] [{'concept': 'Q166142'}, 'P840', 'Q21']
SELECT DISTINCT ( COUNT ( ?v ) AS ?o ) WHERE { ?v property:P840 resource:Q30 . ?v rdf:type ontology:Q166142 . ?v property:P840 resource:Q21 . ?v rdf:type ontology:Q166142 }
Battlefield 1942 Need for Speed: Shift
2
action count
action intersection
action filter_type
action find_reverse
entity United States of America
relation narrative location
type application
action filter_type
action find_reverse
entity England
relation narrative location
type application
[{'concept': 'application'}, 'narrative location', 'United States of America'] [{'concept': 'application'}, 'narrative location', 'England']
SELECT DISTINCT ( COUNT ( ?v ) AS ?o ) WHERE { ?v property:narrative_location resource:United_States_of_America . ?v rdf:type ontology:application . ?v property:narrative_location resource:England . ?v rdf:type ontology:application }
[]