Simple Question (Direct)
Simple Question
Q3348509
P136
Q1792379
USER
What can be considered as category for Obsession ?
(Q3348509,P136,c(Q1792379))
action filter_type
action find
entity Q3348509
relation P136
type Q1792379
['Q3348509', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?u WHERE { resource:Q3348509 property:P136 ?u . ?u rdf:type ontology:Q1792379 }
Obsession
action filter_type
action find
entity Obsession
relation genre
type art genre
['Obsession', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?u WHERE { resource:Obsession property:genre ?u . ?u rdf:type ontology:art_genre }
[]
art genre
Q959790 Q130232
SYSTEM
crime film, drama film
Q959790 Q130232
(Q3348509,P136,c(Q1792379))
action filter_type
action find
entity Q3348509
relation P136
type Q1792379
And [ANSWERS] can be considered as category for Obsession
['Q3348509', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?u WHERE { resource:Q3348509 property:P136 ?u . ?u rdf:type ontology:Q1792379 }
crime film drama film
And crime film and drama film can be considered as category for Obsession
crime film drama film
action filter_type
action find
entity Obsession
relation genre
type art genre
['Obsession', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?u WHERE { resource:Obsession property:genre ?u . ?u rdf:type ontology:art_genre }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3348509
P495
Q15617994
USER
Where did Obsession originate ?
(Q3348509,P495,c(Q15617994))
action filter_type
action find
entity Q3348509
relation P495
type Q15617994
['Q3348509', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15617994 . resource:Q3348509 property:P495 ?q }
Obsession
action filter_type
action find
entity Obsession
relation country of origin
type designation for an administrative territorial entity
['Obsession', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Obsession property:country_of_origin ?q }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q3348509,P495,c(Q15617994))
action filter_type
action find
entity Q3348509
relation P495
type Q15617994
Obsession originated in [ANSWER]
['Q3348509', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15617994 . resource:Q3348509 property:P495 ?q }
France
Obsession originated in France
France
action filter_type
action find
entity Obsession
relation country of origin
type designation for an administrative territorial entity
['Obsession', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Obsession property:country_of_origin ?q }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q846336
Q15617994
USER
And also tell me about Mark IV?
(Q846336,P495,c(Q15617994))
action filter_type
action find
entity Q846336
relation P495
type Q15617994
['Q846336', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q15617994 . resource:Q846336 property:P495 ?f }
Mark IV
action filter_type
action find
entity Mark IV
relation country of origin
type designation for an administrative territorial entity
['Mark IV', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Mark_IV property:country_of_origin ?f }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q846336,P495,c(Q15617994))
action filter_type
action find
entity Q846336
relation P495
type Q15617994
[ANSWER]
['Q846336', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q15617994 . resource:Q846336 property:P495 ?f }
United Kingdom
United Kingdom
action filter_type
action find
entity Mark IV
relation country of origin
type designation for an administrative territorial entity
['Mark IV', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Mark_IV property:country_of_origin ?f }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q145
P1532
Q6979593
USER
Who play for that administrative territory ?
(c(Q6979593),P1532,Q145)
action filter_type
action find_reverse
entity Q145
relation P1532
type Q6979593
[{'concept': 'Q6979593'}, 'P1532', 'Q145']
SELECT DISTINCT ?x WHERE { ?x property:P1532 resource:Q145 . ?x rdf:type ontology:Q6979593 }
United Kingdom
action filter_type
action find_reverse
entity United Kingdom
relation country for sport
type national association football team
[{'concept': 'national association football team'}, 'country for sport', 'United Kingdom']
SELECT DISTINCT ?x WHERE { ?x property:country_for_sport resource:United_Kingdom . ?x rdf:type ontology:national_association_football_team }
[]
national association football team
Q918209 Q877411
SYSTEM
Great Britain women's Olympic association football team, Great Britain Olympic football team
Q918209 Q877411
(c(Q6979593),P1532,Q145)
action filter_type
action find_reverse
entity Q145
relation P1532
type Q6979593
[ANSWERS] play for that administrative territory
[{'concept': 'Q6979593'}, 'P1532', 'Q145']
SELECT DISTINCT ?x WHERE { ?x property:P1532 resource:Q145 . ?x rdf:type ontology:Q6979593 }
Great Britain women's Olympic association football team Great Britain Olympic football team
Great Britain women's Olympic association football team and Great Britain Olympic football team play for that administrative territory
Great Britain women's Olympic association football team Great Britain Olympic football team
action filter_type
action find_reverse
entity United Kingdom
relation country for sport
type national association football team
[{'concept': 'national association football team'}, 'country for sport', 'United Kingdom']
SELECT DISTINCT ?x WHERE { ?x property:country_for_sport resource:United_Kingdom . ?x rdf:type ontology:national_association_football_team }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q1020707
P161
Q502895
USER
How many people starred in The Truth About Jane and Sam ?
(Q1020707,P161,c(Q502895))
action count
action filter_type
action find
entity Q1020707
relation P161
type Q502895
['Q1020707', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?n ) WHERE { ?w rdf:type ontology:Q502895 . resource:Q1020707 property:P161 ?w }
The Truth About Jane and Sam
action count
action filter_type
action find
entity The Truth About Jane and Sam
relation cast member
type common name
['The Truth About Jane and Sam', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?n ) WHERE { ?w rdf:type ontology:common_name . resource:The_Truth_About_Jane_and_Sam property:cast_member ?w }
[]
common name
SYSTEM
9
Q701936 Q9137924 Q717095 Q6138309 Q2380538 Q265124 Q517063 Q269513 Q7979773
(Q1020707,P161,c(Q502895))
action count
action filter_type
action find
entity Q1020707
relation P161
type Q502895
[ANSWER]
['Q1020707', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?n ) WHERE { ?w rdf:type ontology:Q502895 . resource:Q1020707 property:P161 ?w }
Chin Kar-lok Joe Cheung Peter Ho James Lye Wei Wei Fann Wong Isabel Chan Cheng Pei-pei Wei Wei
9
action count
action filter_type
action find
entity The Truth About Jane and Sam
relation cast member
type common name
['The Truth About Jane and Sam', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?n ) WHERE { ?w rdf:type ontology:common_name . resource:The_Truth_About_Jane_and_Sam property:cast_member ?w }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q15725811
Q502895
USER
And also tell me about Entourage?
(Q15725811,P161,c(Q502895))
action count
action filter_type
action find
entity Q15725811
relation P161
type Q502895
['Q15725811', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?x ) WHERE { resource:Q15725811 property:P161 ?t . ?t rdf:type ontology:Q502895 }
Entourage
action count
action filter_type
action find
entity Entourage
relation cast member
type common name
['Entourage', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?x ) WHERE { resource:Entourage property:cast_member ?t . ?t rdf:type ontology:common_name }
[]
common name
SYSTEM
67
(Q15725811,P161,c(Q502895))
action count
action filter_type
action find
entity Q15725811
relation P161
type Q502895
[ANSWER]
['Q15725811', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?x ) WHERE { resource:Q15725811 property:P161 ?t . ?t rdf:type ontology:Q502895 }
67
action count
action filter_type
action find
entity Entourage
relation cast member
type common name
['Entourage', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?x ) WHERE { resource:Entourage property:cast_member ?t . ?t rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories are known to have diplomatic connections with atleast 48 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action atleast
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 48
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?i ) AS ?t ) WHERE { ?d property:P530 ?i . ?d rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q15617994 } GROUP BY ?d } . FILTER ( ?t >= 48 ) }
action atleast
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 48
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?i ) AS ?t ) WHERE { ?d property:diplomatic_relation ?i . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?d } . FILTER ( ?t >= 48 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q155 Q38 Q230
SYSTEM
Brazil, Italy, Georgia
Q155 Q38 Q230
(c(Q15617994),P530,c(Q15617994))
action atleast
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 48
[ANSWERS] are known to have diplomatic connections with atleast 48 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?i ) AS ?t ) WHERE { ?d property:P530 ?i . ?d rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q15617994 } GROUP BY ?d } . FILTER ( ?t >= 48 ) }
Brazil Italy Georgia
Brazil, Italy and Georgia are known to have diplomatic connections with atleast 48 administrative territories
Brazil Italy Georgia
action atleast
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 48
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?i ) AS ?t ) WHERE { ?d property:diplomatic_relation ?i . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?d } . FILTER ( ?t >= 48 ) }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P137
Q15056995 Q811979
USER
How many aircraft models and architectural structures were managed by that administrative territory ?
(c(Q15056995),P137,Q155) (c(Q811979),P137,Q155) (c(Q15056995),P137,Q155) (c(Q811979),P137,Q155) (c(Q15056995),P137,Q38) (c(Q811979),P137,Q38) (c(Q15056995),P137,Q230) (c(Q811979),P137,Q230)
[{'concept': 'Q15056995'}, 'P137', 'Q155'] [{'concept': 'Q811979'}, 'P137', 'Q155'] [{'concept': 'Q15056995'}, 'P137', 'Q155'] [{'concept': 'Q811979'}, 'P137', 'Q155'] [{'concept': 'Q15056995'}, 'P137', 'Q38'] [{'concept': 'Q811979'}, 'P137', 'Q38'] [{'concept': 'Q15056995'}, 'P137', 'Q230'] [{'concept': 'Q811979'}, 'P137', 'Q230']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:Q131030 resource:Q21475816 } UNION { ?y property:Q131030 resource:Q21475816 } UNION { ?z property:Q131030 resource:Q21475816 } UNION { ?y property:Q131030 resource:Q21475816 } UNION { ?z property:Q131030 resource:Q977238 } UNION { ?y property:Q131030 resource:Q977238 } UNION { ?z property:Q131030 resource:Q5547323 } UNION { ?y property:Q131030 resource:Q5547323 } } . ?z rdf:type ontology:Q15056995 . ?y rdf:type ontology:Q811979 }
[{'concept': 'aircraft model'}, 'operator', 'Brazil'] [{'concept': 'architectural structure'}, 'operator', 'Brazil'] [{'concept': 'aircraft model'}, 'operator', 'Brazil'] [{'concept': 'architectural structure'}, 'operator', 'Brazil'] [{'concept': 'aircraft model'}, 'operator', 'Italy'] [{'concept': 'architectural structure'}, 'operator', 'Italy'] [{'concept': 'aircraft model'}, 'operator', 'Georgia'] [{'concept': 'architectural structure'}, 'operator', 'Georgia']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:operator resource:Brazil } UNION { ?y property:operator resource:Brazil } UNION { ?z property:operator resource:Brazil } UNION { ?y property:operator resource:Brazil } UNION { ?z property:operator resource:Italy } UNION { ?y property:operator resource:Italy } UNION { ?z property:operator resource:Georgia } UNION { ?y property:operator resource:Georgia } } . ?z rdf:type ontology:aircraft_model . ?y rdf:type ontology:architectural_structure }
[]
aircraft model architectural structure
Quantitative|Count|Mult. entity type|Clarification
Q155
SYSTEM
Did you mean Brazil ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:Q131030 resource:Q21475816 } UNION { ?y property:Q131030 resource:Q21475816 } UNION { ?z property:Q131030 resource:Q21475816 } UNION { ?y property:Q131030 resource:Q21475816 } UNION { ?z property:Q131030 resource:Q977238 } UNION { ?y property:Q131030 resource:Q977238 } UNION { ?z property:Q131030 resource:Q5547323 } UNION { ?y property:Q131030 resource:Q5547323 } } . ?z rdf:type ontology:Q15056995 . ?y rdf:type ontology:Q811979 }
Did you mean Brazil ?
Brazil
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:operator resource:Brazil } UNION { ?y property:operator resource:Brazil } UNION { ?z property:operator resource:Brazil } UNION { ?y property:operator resource:Brazil } UNION { ?z property:operator resource:Italy } UNION { ?y property:operator resource:Italy } UNION { ?z property:operator resource:Georgia } UNION { ?y property:operator resource:Georgia } } . ?z rdf:type ontology:aircraft_model . ?y rdf:type ontology:architectural_structure }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(c(Q15056995),P137,Q155) (c(Q811979),P137,Q155) (c(Q15056995),P137,Q155) (c(Q811979),P137,Q155) (c(Q15056995),P137,Q38) (c(Q811979),P137,Q38) (c(Q15056995),P137,Q230) (c(Q811979),P137,Q230)
[{'concept': 'Q15056995'}, 'P137', 'Q155'] [{'concept': 'Q811979'}, 'P137', 'Q155'] [{'concept': 'Q15056995'}, 'P137', 'Q155'] [{'concept': 'Q811979'}, 'P137', 'Q155'] [{'concept': 'Q15056995'}, 'P137', 'Q38'] [{'concept': 'Q811979'}, 'P137', 'Q38'] [{'concept': 'Q15056995'}, 'P137', 'Q230'] [{'concept': 'Q811979'}, 'P137', 'Q230']
[{'concept': 'aircraft model'}, 'operator', 'Brazil'] [{'concept': 'architectural structure'}, 'operator', 'Brazil'] [{'concept': 'aircraft model'}, 'operator', 'Brazil'] [{'concept': 'architectural structure'}, 'operator', 'Brazil'] [{'concept': 'aircraft model'}, 'operator', 'Italy'] [{'concept': 'architectural structure'}, 'operator', 'Italy'] [{'concept': 'aircraft model'}, 'operator', 'Georgia'] [{'concept': 'architectural structure'}, 'operator', 'Georgia']
[]
SYSTEM
3 aircraft models and 1 architectural structures
Q10272249 Q18011062 Q18011069 Q18169150
(c(Q15056995),P137,Q155) (c(Q811979),P137,Q155) (c(Q15056995),P137,Q155) (c(Q811979),P137,Q155) (c(Q15056995),P137,Q38) (c(Q811979),P137,Q38) (c(Q15056995),P137,Q230) (c(Q811979),P137,Q230)
[ANSWER]
[{'concept': 'Q15056995'}, 'P137', 'Q155'] [{'concept': 'Q811979'}, 'P137', 'Q155'] [{'concept': 'Q15056995'}, 'P137', 'Q155'] [{'concept': 'Q811979'}, 'P137', 'Q155'] [{'concept': 'Q15056995'}, 'P137', 'Q38'] [{'concept': 'Q811979'}, 'P137', 'Q38'] [{'concept': 'Q15056995'}, 'P137', 'Q230'] [{'concept': 'Q811979'}, 'P137', 'Q230']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:Q131030 resource:Q21475816 } UNION { ?y property:Q131030 resource:Q21475816 } UNION { ?z property:Q131030 resource:Q21475816 } UNION { ?y property:Q131030 resource:Q21475816 } UNION { ?z property:Q131030 resource:Q977238 } UNION { ?y property:Q131030 resource:Q977238 } UNION { ?z property:Q131030 resource:Q5547323 } UNION { ?y property:Q131030 resource:Q5547323 } } . ?z rdf:type ontology:Q15056995 . ?y rdf:type ontology:Q811979 }
Embassy of Brazil, Stockholm EMB 326 Xavante Impala Mk II T-28R-1 Nomair I
3 aircraft models and 1 architectural structures
[{'concept': 'aircraft model'}, 'operator', 'Brazil'] [{'concept': 'architectural structure'}, 'operator', 'Brazil'] [{'concept': 'aircraft model'}, 'operator', 'Brazil'] [{'concept': 'architectural structure'}, 'operator', 'Brazil'] [{'concept': 'aircraft model'}, 'operator', 'Italy'] [{'concept': 'architectural structure'}, 'operator', 'Italy'] [{'concept': 'aircraft model'}, 'operator', 'Georgia'] [{'concept': 'architectural structure'}, 'operator', 'Georgia']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:operator resource:Brazil } UNION { ?y property:operator resource:Brazil } UNION { ?z property:operator resource:Brazil } UNION { ?y property:operator resource:Brazil } UNION { ?z property:operator resource:Italy } UNION { ?y property:operator resource:Italy } UNION { ?z property:operator resource:Georgia } UNION { ?y property:operator resource:Georgia } } . ?z rdf:type ontology:aircraft_model . ?y rdf:type ontology:architectural_structure }
[]