Simple Question (Direct)
Simple Question
Q16481
P21
Q290
USER
Which sex does Sue Whitesides belong to ?
(Q16481,P21,c(Q290))
action filter_type
action find
entity Q16481
relation P21
type Q290
['Q16481', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { resource:Q16481 property:P21 ?e . ?e rdf:type ontology:Q290 }
Sue Whitesides
action filter_type
action find
entity Sue Whitesides
relation gender
type sex
['Sue Whitesides', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { resource:Sue_Whitesides property:gender ?e . ?e rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q16481,P21,c(Q290))
action filter_type
action find
entity Q16481
relation P21
type Q290
Sue Whitesides belongs to [ANSWER]
['Q16481', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { resource:Q16481 property:P21 ?e . ?e rdf:type ontology:Q290 }
female
Sue Whitesides belongs to female
female
action filter_type
action find
entity Sue Whitesides
relation gender
type sex
['Sue Whitesides', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { resource:Sue_Whitesides property:gender ?e . ?e rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16481
P69
Q3918
USER
Which university is the alma mater of that person ?
(Q6581072,P69,c(Q3918))
action filter_type
action find
entity Q16481
relation P69
type Q3918
['Q6581072', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q3918 . resource:Q16481 property:P69 ?i }
Sue Whitesides
action filter_type
action find
entity Sue Whitesides
relation educated at
type university
['female', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:university . resource:Sue_Whitesides property:educated_at ?i }
[]
university
Q838330
SYSTEM
University of Wisconsin–Madison
Q838330
(Q6581072,P69,c(Q3918))
action filter_type
action find
entity Q16481
relation P69
type Q3918
[ANSWER] is the alma mater of that person
['Q6581072', 'P69', {'concept': 'Q3918'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q3918 . resource:Q16481 property:P69 ?i }
University of Wisconsin–Madison
University of Wisconsin–Madison is the alma mater of that person
University of Wisconsin–Madison
action filter_type
action find
entity Sue Whitesides
relation educated at
type university
['female', 'educated at', {'concept': 'university'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:university . resource:Sue_Whitesides property:educated_at ?i }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q838330 Q1395477
P108
Q502895
USER
Is Frédéric Thomas working for that university ?
(Q1395477,P108,Q838330)
action is_in
entity Q1395477
action find
entity Q838330
relation P108
['Q1395477', 'P108', 'Q838330']
ASK WHERE { resource:Q838330 property:P108 resource:Q1395477 }
University of Wisconsin–Madison Frédéric Thomas
action is_in
entity Frédéric Thomas
action find
entity University of Wisconsin–Madison
relation employer
['Frédéric Thomas', 'employer', 'University of Wisconsin–Madison']
ASK WHERE { resource:University_of_Wisconsin–Madison property:employer resource:Frédéric_Thomas }
[]
common name
SYSTEM
NO
(Q1395477,P108,Q838330)
action is_in
entity Q1395477
action find
entity Q838330
relation P108
[ANSWER]
['Q1395477', 'P108', 'Q838330']
ASK WHERE { resource:Q838330 property:P108 resource:Q1395477 }
No
action is_in
entity Frédéric Thomas
action find
entity University of Wisconsin–Madison
relation employer
['Frédéric Thomas', 'employer', 'University of Wisconsin–Madison']
ASK WHERE { resource:University_of_Wisconsin–Madison property:employer resource:Frédéric_Thomas }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q16481 Q16
P27
Q1048835
USER
Is Sue Whitesides an inhabitant of Canada ?
(Q16481,P27,Q16)
action is_in
entity Q16
action find
entity Q16481
relation P27
['Q16481', 'P27', 'Q16']
ASK WHERE { resource:Q16481 property:P27 resource:Q16 }
Sue Whitesides Canada
action is_in
entity Canada
action find
entity Sue Whitesides
relation country of citizenship
['Sue Whitesides', 'country of citizenship', 'Canada']
ASK WHERE { resource:Sue_Whitesides property:country_of_citizenship resource:Canada }
[]
political territorial entity
SYSTEM
YES
(Q16481,P27,Q16)
action is_in
entity Q16
action find
entity Q16481
relation P27
[ANSWER]
['Q16481', 'P27', 'Q16']
ASK WHERE { resource:Q16481 property:P27 resource:Q16 }
Yes
action is_in
entity Canada
action find
entity Sue Whitesides
relation country of citizenship
['Sue Whitesides', 'country of citizenship', 'Canada']
ASK WHERE { resource:Sue_Whitesides property:country_of_citizenship resource:Canada }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q838330 Q6175695 Q5009424
P17
Q15617994
USER
Is University of Wisconsin–Madison located in Jefferson Township Public Schools and CCAT ?
(Q838330,P17,Q6175695) (Q838330,P17,Q5009424)
action is_in
entity Q838330
action intersection
action find_reverse
entity Q6175695
relation P17
action find_reverse
entity Q5009424
relation P17
['Q838330', 'P17', 'Q6175695'] ['Q838330', 'P17', 'Q5009424']
ASK WHERE { resource:Q838330 property:P17 resource:Q5009424 . resource:Q838330 property:P17 resource:Q6175695 }
University of Wisconsin–Madison Jefferson Township Public Schools CCAT
action is_in
entity University of Wisconsin–Madison
action intersection
action find_reverse
entity Jefferson Township Public Schools
relation country
action find_reverse
entity CCAT
relation country
['University of Wisconsin–Madison', 'country', 'Jefferson Township Public Schools'] ['University of Wisconsin–Madison', 'country', 'CCAT']
ASK WHERE { resource:University_of_Wisconsin–Madison property:country resource:CCAT . resource:University_of_Wisconsin–Madison property:country resource:Jefferson_Township_Public_Schools }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q838330,P17,Q6175695) (Q838330,P17,Q5009424)
action is_in
entity Q838330
action intersection
action find_reverse
entity Q6175695
relation P17
action find_reverse
entity Q5009424
relation P17
[ANSWER]
['Q838330', 'P17', 'Q6175695'] ['Q838330', 'P17', 'Q5009424']
ASK WHERE { resource:Q838330 property:P17 resource:Q5009424 . resource:Q838330 property:P17 resource:Q6175695 }
No
action is_in
entity University of Wisconsin–Madison
action intersection
action find_reverse
entity Jefferson Township Public Schools
relation country
action find_reverse
entity CCAT
relation country
['University of Wisconsin–Madison', 'country', 'Jefferson Township Public Schools'] ['University of Wisconsin–Madison', 'country', 'CCAT']
ASK WHERE { resource:University_of_Wisconsin–Madison property:country resource:CCAT . resource:University_of_Wisconsin–Madison property:country resource:Jefferson_Township_Public_Schools }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q718634 Q1395477
P27
Q15617994
USER
Which administrative territories are Frédéric Thomas or Gagik Tsarukyan a civilian of ?
OR((Q1395477,P27,c(Q15617994)), (Q718634,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1395477
relation P27
action find
entity Q718634
relation P27
type Q15617994
{'OR': [['Q1395477', 'P27', {'concept': 'Q15617994'}], ['Q718634', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q1395477 property:P27 ?i } UNION { resource:Q718634 property:P27 ?i } } . ?i rdf:type ontology:Q15617994 }
Gagik Tsarukyan Frédéric Thomas
action filter_type
action union
action find
entity Frédéric Thomas
relation country of citizenship
action find
entity Gagik Tsarukyan
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Frédéric Thomas', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Gagik Tsarukyan', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Frédéric_Thomas property:country_of_citizenship ?i } UNION { resource:Gagik_Tsarukyan property:country_of_citizenship ?i } } . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q399
SYSTEM
France, Armenia
Q142 Q399
OR((Q1395477,P27,c(Q15617994)), (Q718634,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1395477
relation P27
action find
entity Q718634
relation P27
type Q15617994
[ANSWERS] are Frédéric Thomas or Gagik Tsarukyan a civilian of
{'OR': [['Q1395477', 'P27', {'concept': 'Q15617994'}], ['Q718634', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q1395477 property:P27 ?i } UNION { resource:Q718634 property:P27 ?i } } . ?i rdf:type ontology:Q15617994 }
France Armenia
France and Armenia are Frédéric Thomas or Gagik Tsarukyan a civilian of
France Armenia
action filter_type
action union
action find
entity Frédéric Thomas
relation country of citizenship
action find
entity Gagik Tsarukyan
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Frédéric Thomas', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Gagik Tsarukyan', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Frédéric_Thomas property:country_of_citizenship ?i } UNION { resource:Gagik_Tsarukyan property:country_of_citizenship ?i } } . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q399
P37
Q34770
USER
What is recognized as the official language of that administrative territory ?
(Q399,P37,c(Q34770))
action filter_type
action find
entity Q399
relation P37
type Q34770
['Q399', 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?m WHERE { resource:Q399 property:P37 ?m . ?m rdf:type ontology:Q34770 }
Armenia
action filter_type
action find
entity Armenia
relation official language
type language
['Armenia', 'official language', {'concept': 'language'}]
SELECT DISTINCT ?m WHERE { resource:Armenia property:official_language ?m . ?m rdf:type ontology:language }
[]
language
Clarification for simple ques.
Q142
SYSTEM
Did you mean France ?
Q142 Q399
(Q142,P37,c(Q34770)) (Q399,P37,c(Q34770))
[ANSWER]
['Q142', 'P37', {'concept': 'Q34770'}] ['Q399', 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?m WHERE { resource:Q399 property:P37 ?m . ?m rdf:type ontology:Q34770 }
France Armenia
Did you mean France ?
France
['France', 'official language', {'concept': 'language'}] ['Armenia', 'official language', {'concept': 'language'}]
SELECT DISTINCT ?m WHERE { resource:Armenia property:official_language ?m . ?m rdf:type ontology:language }
[]
Simple Question (Coreferenced)
USER
No, I meant Armenia. Could you tell me the answer for that?
(Q399,P37,c(Q34770))
Q399
['Q399', 'P37', {'concept': 'Q34770'}]
['Armenia', 'official language', {'concept': 'language'}]
[]
Q8785
SYSTEM
Armenian
Q8785
(Q399,P37,c(Q34770))
action filter_type
action find
entity Q399
relation P37
type Q34770
Of [ANSWER] is recognized as the official language of that administrative territory
['Q399', 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?m WHERE { resource:Q399 property:P37 ?m . ?m rdf:type ontology:Q34770 }
Armenian
Of Armenian is recognized as the official language of that administrative territory
Armenian
action filter_type
action find
entity Armenia
relation official language
type language
['Armenia', 'official language', {'concept': 'language'}]
SELECT DISTINCT ?m WHERE { resource:Armenia property:official_language ?m . ?m rdf:type ontology:language }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q15617994 Q340169 Q3305213
USER
Which administrative territories are depicted in exactly 1 medias or paintings ?
(c(Q340169)|c(Q3305213),P180,c(Q15617994))
action equal
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q340169
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q3305213
value 1
[[{'concept': 'Q340169'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?a ) ?r WHERE { ?k rdf:type ?o . VALUES ( ?o ) { ( ontology:Q340169 ) ( ontology:Q3305213 ) } } GROUP BY ?r } . FILTER ( ?a = 1 ) }
action equal
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type media
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type painting
value 1
[[{'concept': 'media'}, {'concept': 'painting'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?a ) ?r WHERE { ?k rdf:type ?o . VALUES ( ?o ) { ( ontology:media ) ( ontology:painting ) } } GROUP BY ?r } . FILTER ( ?a = 1 ) }
[]
designation for an administrative territorial entity media painting
Q145 Q712 Q772
SYSTEM
United Kingdom, Fiji, Drenthe
Q3883 Q674904 Q145 Q712 Q532 Q80644 Q772 Q1273
(c(Q340169)|c(Q3305213),P180,c(Q15617994))
action equal
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q340169
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q3305213
value 1
[ANSWERS] are depicted in exactly 1 medias or paintings
[[{'concept': 'Q340169'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?a ) ?r WHERE { ?k rdf:type ?o . VALUES ( ?o ) { ( ontology:Q340169 ) ( ontology:Q3305213 ) } } GROUP BY ?r } . FILTER ( ?a = 1 ) }
Catanzaro Krumau am Kamp United Kingdom Fiji village Köngen Drenthe Tuscany
United Kingdom, Fiji and Drenthe are depicted in exactly 1 medias or paintings
United Kingdom Fiji Drenthe
action equal
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type media
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type painting
value 1
[[{'concept': 'media'}, {'concept': 'painting'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?a ) ?r WHERE { ?k rdf:type ?o . VALUES ( ?o ) { ( ontology:media ) ( ontology:painting ) } } GROUP BY ?r } . FILTER ( ?a = 1 ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q772
P30
Q2221906
USER
Where is that administrative territory situated ?
(Q772,P30,c(Q2221906))
action filter_type
action find
entity Q772
relation P30
type Q2221906
['Q772', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?x WHERE { resource:Q772 property:P30 ?x . ?x rdf:type ontology:Q2221906 }
Drenthe
action filter_type
action find
entity Drenthe
relation continent
type geographic location
['Drenthe', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?x WHERE { resource:Drenthe property:continent ?x . ?x rdf:type ontology:geographic_location }
[]
geographic location
Clarification for simple ques.
Q145
SYSTEM
Did you mean United Kingdom ?
Q145 Q712 Q772
(Q145,P30,c(Q2221906)) (Q712,P30,c(Q2221906)) (Q772,P30,c(Q2221906))
[ANSWER]
['Q145', 'P30', {'concept': 'Q2221906'}] ['Q712', 'P30', {'concept': 'Q2221906'}] ['Q772', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?x WHERE { resource:Q772 property:P30 ?x . ?x rdf:type ontology:Q2221906 }
United Kingdom Fiji Drenthe
Did you mean United Kingdom ?
United Kingdom
['United Kingdom', 'continent', {'concept': 'geographic location'}] ['Fiji', 'continent', {'concept': 'geographic location'}] ['Drenthe', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?x WHERE { resource:Drenthe property:continent ?x . ?x rdf:type ontology:geographic_location }
[]
Simple Question (Coreferenced)
USER
No, I meant Drenthe. Could you tell me the answer for that?
(Q772,P30,c(Q2221906))
Q772
['Q772', 'P30', {'concept': 'Q2221906'}]
['Drenthe', 'continent', {'concept': 'geographic location'}]
[]
Q46
SYSTEM
Europe
Q46
(Q772,P30,c(Q2221906))
action filter_type
action find
entity Q772
relation P30
type Q2221906
That administrative territory is situated in [ANSWER]
['Q772', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?x WHERE { resource:Q772 property:P30 ?x . ?x rdf:type ontology:Q2221906 }
Europe
That administrative territory is situated in Europe
Europe
action filter_type
action find
entity Drenthe
relation continent
type geographic location
['Drenthe', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?x WHERE { resource:Drenthe property:continent ?x . ?x rdf:type ontology:geographic_location }
[]