Simple Question (Direct)
Simple Question
Q5676229
P495
Q15617994
USER
Which administrative territory is the country of origin of Harvard, Here I Come! ?
(Q5676229,P495,c(Q15617994))
action filter_type
action find
entity Q5676229
relation P495
type Q15617994
['Q5676229', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { resource:Q5676229 property:P495 ?d . ?d rdf:type ontology:Q15617994 }
Harvard, Here I Come!
action filter_type
action find
entity Harvard, Here I Come!
relation country of origin
type designation for an administrative territorial entity
['Harvard, Here I Come!', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Harvard,_Here_I_Come! property:country_of_origin ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q5676229,P495,c(Q15617994))
action filter_type
action find
entity Q5676229
relation P495
type Q15617994
[ANSWER] is the country of origin of Harvard, Here I Come!
['Q5676229', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { resource:Q5676229 property:P495 ?d . ?d rdf:type ontology:Q15617994 }
United States of America
United States of America is the country of origin of Harvard, Here I Come!
United States of America
action filter_type
action find
entity Harvard, Here I Come!
relation country of origin
type designation for an administrative territorial entity
['Harvard, Here I Come!', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Harvard,_Here_I_Come! property:country_of_origin ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5676229
P57
Q502895
USER
Which person directed that work of art ?
(Q30,P57,c(Q502895))
action filter_type
action find
entity Q5676229
relation P57
type Q502895
['Q30', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q5676229 property:P57 ?c . ?c rdf:type ontology:Q502895 }
Harvard, Here I Come!
action filter_type
action find
entity Harvard, Here I Come!
relation director
type common name
['United States of America', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:Harvard,_Here_I_Come! property:director ?c . ?c rdf:type ontology:common_name }
[]
common name
Q3237273
SYSTEM
Lew Landers
Q3237273
(Q30,P57,c(Q502895))
action filter_type
action find
entity Q5676229
relation P57
type Q502895
[ANSWER] directed that work of art
['Q30', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q5676229 property:P57 ?c . ?c rdf:type ontology:Q502895 }
Lew Landers
Lew Landers directed that work of art
Lew Landers
action filter_type
action find
entity Harvard, Here I Come!
relation director
type common name
['United States of America', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { resource:Harvard,_Here_I_Come! property:director ?c . ?c rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3237273
P21
Q290
USER
Which sex does that person have ?
(Q3237273,P21,c(Q290))
action filter_type
action find
entity Q3237273
relation P21
type Q290
['Q3237273', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?v WHERE { resource:Q3237273 property:P21 ?v . ?v rdf:type ontology:Q290 }
Lew Landers
action filter_type
action find
entity Lew Landers
relation gender
type sex
['Lew Landers', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?v WHERE { resource:Lew_Landers property:gender ?v . ?v rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q3237273,P21,c(Q290))
action filter_type
action find
entity Q3237273
relation P21
type Q290
That person has a [ANSWER]
['Q3237273', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?v WHERE { resource:Q3237273 property:P21 ?v . ?v rdf:type ontology:Q290 }
male
That person has a male
male
action filter_type
action find
entity Lew Landers
relation gender
type sex
['Lew Landers', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?v WHERE { resource:Lew_Landers property:gender ?v . ?v rdf:type ontology:sex }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q17382753 Q1259713
P21
Q290
USER
How many sexes do Viivi Paarmio or George Bellairs belong to ?
(Q17382753,P21,c(Q290)) (Q1259713,P21,c(Q290))
action count
action union
action filter_type
action find
entity Q17382753
relation P21
type Q290
action filter_type
action find
entity Q1259713
relation P21
type Q290
['Q17382753', 'P21', {'concept': 'Q290'}] ['Q1259713', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) WHERE { { resource:Q17382753 property:P21 ?m . ?m rdf:type ontology:Q290 } UNION { resource:Q1259713 property:P21 ?m . ?m rdf:type ontology:Q290 } }
Viivi Paarmio George Bellairs
action count
action union
action filter_type
action find
entity Viivi Paarmio
relation gender
type sex
action filter_type
action find
entity George Bellairs
relation gender
type sex
['Viivi Paarmio', 'gender', {'concept': 'sex'}] ['George Bellairs', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) WHERE { { resource:Viivi_Paarmio property:gender ?m . ?m rdf:type ontology:sex } UNION { resource:George_Bellairs property:gender ?m . ?m rdf:type ontology:sex } }
[]
sex
SYSTEM
2
Q6581097 Q6581072
(Q17382753,P21,c(Q290)) (Q1259713,P21,c(Q290))
action count
action union
action filter_type
action find
entity Q17382753
relation P21
type Q290
action filter_type
action find
entity Q1259713
relation P21
type Q290
[ANSWER]
['Q17382753', 'P21', {'concept': 'Q290'}] ['Q1259713', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) WHERE { { resource:Q17382753 property:P21 ?m . ?m rdf:type ontology:Q290 } UNION { resource:Q1259713 property:P21 ?m . ?m rdf:type ontology:Q290 } }
male female
2
action count
action union
action filter_type
action find
entity Viivi Paarmio
relation gender
type sex
action filter_type
action find
entity George Bellairs
relation gender
type sex
['Viivi Paarmio', 'gender', {'concept': 'sex'}] ['George Bellairs', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?n ) WHERE { { resource:Viivi_Paarmio property:gender ?m . ?m rdf:type ontology:sex } UNION { resource:George_Bellairs property:gender ?m . ?m rdf:type ontology:sex } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments do atleast 2605 people know to play ?
(c(Q502895),P1303,c(Q34379))
action count
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2605
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?v ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?l ) AS ?p ) WHERE { ?l property:P1303 ?d . ?l rdf:type ontology:Q502895 . ?d rdf:type ontology:Q34379 } GROUP BY ?d } . FILTER ( ?p >= 2605 ) }
action count
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2605
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?v ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?l ) AS ?p ) WHERE { ?l property:instrument ?d . ?l rdf:type ontology:common_name . ?d rdf:type ontology:musical_instrument } GROUP BY ?d } . FILTER ( ?p >= 2605 ) }
[]
musical instrument common name
SYSTEM
2
Q5994 Q8355
(c(Q502895),P1303,c(Q34379))
action count
action atleast
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2605
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?v ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?l ) AS ?p ) WHERE { ?l property:P1303 ?d . ?l rdf:type ontology:Q502895 . ?d rdf:type ontology:Q34379 } GROUP BY ?d } . FILTER ( ?p >= 2605 ) }
piano violin
2
action count
action atleast
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2605
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?v ) WHERE { { SELECT DISTINCT ?d ( COUNT ( ?l ) AS ?p ) WHERE { ?l property:instrument ?d . ?l rdf:type ontology:common_name . ?d rdf:type ontology:musical_instrument } GROUP BY ?d } . FILTER ( ?p >= 2605 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q313298 Q3237273
P27
Q15617994
USER
Which administrative territories are Lew Landers or Suryavarman II an inhabitant of ?
OR((Q3237273,P27,c(Q15617994)), (Q313298,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q3237273
relation P27
action find
entity Q313298
relation P27
type Q15617994
{'OR': [['Q3237273', 'P27', {'concept': 'Q15617994'}], ['Q313298', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { { VALUES ( ?w ) { ( resource:Q313298 ) ( resource:Q3237273 ) } . ?w property:P27 ?r } . ?r rdf:type ontology:Q15617994 }
Suryavarman II Lew Landers
action filter_type
action union
action find
entity Lew Landers
relation country of citizenship
action find
entity Suryavarman II
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Lew Landers', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Suryavarman II', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { { VALUES ( ?w ) { ( resource:Suryavarman_II ) ( resource:Lew_Landers ) } . ?w property:country_of_citizenship ?r } . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q424
SYSTEM
United States of America, Cambodia
Q30 Q424
OR((Q3237273,P27,c(Q15617994)), (Q313298,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q3237273
relation P27
action find
entity Q313298
relation P27
type Q15617994
[ANSWERS] are Lew Landers or Suryavarman II an inhabitant of
{'OR': [['Q3237273', 'P27', {'concept': 'Q15617994'}], ['Q313298', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { { VALUES ( ?w ) { ( resource:Q313298 ) ( resource:Q3237273 ) } . ?w property:P27 ?r } . ?r rdf:type ontology:Q15617994 }
United States of America Cambodia
United States of America and Cambodia are Lew Landers or Suryavarman II an inhabitant of
United States of America Cambodia
action filter_type
action union
action find
entity Lew Landers
relation country of citizenship
action find
entity Suryavarman II
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Lew Landers', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Suryavarman II', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { { VALUES ( ?w ) { ( resource:Suryavarman_II ) ( resource:Lew_Landers ) } . ?w property:country_of_citizenship ?r } . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q424
P276
Q167170
USER
Which multi-sport event is located at that administrative territory ?
(c(Q167170),P276,Q424)
action filter_type
action find_reverse
entity Q424
relation P276
type Q167170
[{'concept': 'Q167170'}, 'P276', 'Q424']
SELECT DISTINCT ?k WHERE { ?k property:P276 resource:Q424 . ?k rdf:type ontology:Q167170 }
Cambodia
action filter_type
action find_reverse
entity Cambodia
relation location
type multi-sport event
[{'concept': 'multi-sport event'}, 'location', 'Cambodia']
SELECT DISTINCT ?k WHERE { ?k property:location resource:Cambodia . ?k rdf:type ontology:multi-sport_event }
[]
multi-sport event
Clarification for simple ques.
Q424
SYSTEM
Did you mean Cambodia ?
Q30 Q424
(c(Q167170),P276,Q30) (c(Q167170),P276,Q424)
[ANSWER]
[{'concept': 'Q167170'}, 'P276', 'Q30'] [{'concept': 'Q167170'}, 'P276', 'Q424']
SELECT DISTINCT ?k WHERE { ?k property:P276 resource:Q424 . ?k rdf:type ontology:Q167170 }
United States of America Cambodia
Did you mean Cambodia ?
Cambodia
[{'concept': 'multi-sport event'}, 'location', 'United States of America'] [{'concept': 'multi-sport event'}, 'location', 'Cambodia']
SELECT DISTINCT ?k WHERE { ?k property:location resource:Cambodia . ?k rdf:type ontology:multi-sport_event }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q167170),P276,Q424)
[{'concept': 'Q167170'}, 'P276', 'Q424']
[{'concept': 'multi-sport event'}, 'location', 'Cambodia']
[]
Q2976879
SYSTEM
1963 Southeast Asian Peninsular Games
Q2976879
(c(Q167170),P276,Q424)
action filter_type
action find_reverse
entity Q424
relation P276
type Q167170
[ANSWER] is located at that administrative territory
[{'concept': 'Q167170'}, 'P276', 'Q424']
SELECT DISTINCT ?k WHERE { ?k property:P276 resource:Q424 . ?k rdf:type ontology:Q167170 }
1963 Southeast Asian Peninsular Games
1963 Southeast Asian Peninsular Games is located at that administrative territory
1963 Southeast Asian Peninsular Games
action filter_type
action find_reverse
entity Cambodia
relation location
type multi-sport event
[{'concept': 'multi-sport event'}, 'location', 'Cambodia']
SELECT DISTINCT ?k WHERE { ?k property:location resource:Cambodia . ?k rdf:type ontology:multi-sport_event }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2976879
P276
Q15617994
USER
Which administrative territory is the place where that multi-sport event is located ?
(Q2976879,P276,c(Q15617994))
action filter_type
action find
entity Q2976879
relation P276
type Q15617994
['Q2976879', 'P276', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q2976879 property:P276 ?v . ?v rdf:type ontology:Q15617994 }
1963 Southeast Asian Peninsular Games
action filter_type
action find
entity 1963 Southeast Asian Peninsular Games
relation location
type designation for an administrative territorial entity
['1963 Southeast Asian Peninsular Games', 'location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:1963_Southeast_Asian_Peninsular_Games property:location ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q424
SYSTEM
Cambodia
Q424
(Q2976879,P276,c(Q15617994))
action filter_type
action find
entity Q2976879
relation P276
type Q15617994
[ANSWER] is the place where that multi-sport event is located
['Q2976879', 'P276', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q2976879 property:P276 ?v . ?v rdf:type ontology:Q15617994 }
Cambodia
Cambodia is the place where that multi-sport event is located
Cambodia
action filter_type
action find
entity 1963 Southeast Asian Peninsular Games
relation location
type designation for an administrative territorial entity
['1963 Southeast Asian Peninsular Games', 'location', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:1963_Southeast_Asian_Peninsular_Games property:location ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q424
P1001
Q192350
USER
Which ministry has jurisdiction over that administrative territory ?
(c(Q192350),P1001,Q424)
action filter_type
action find_reverse
entity Q424
relation P1001
type Q192350
[{'concept': 'Q192350'}, 'P1001', 'Q424']
SELECT DISTINCT ?q WHERE { ?q property:P1001 resource:Q424 . ?q rdf:type ontology:Q192350 }
Cambodia
action filter_type
action find_reverse
entity Cambodia
relation applies to jurisdiction
type ministry
[{'concept': 'ministry'}, 'applies to jurisdiction', 'Cambodia']
SELECT DISTINCT ?q WHERE { ?q property:applies_to_jurisdiction resource:Cambodia . ?q rdf:type ontology:ministry }
[]
ministry
Q25203582
SYSTEM
Ministry of Rural Development
Q25203582
(c(Q192350),P1001,Q424)
action filter_type
action find_reverse
entity Q424
relation P1001
type Q192350
The [ANSWER] has jurisdiction over that administrative territory
[{'concept': 'Q192350'}, 'P1001', 'Q424']
SELECT DISTINCT ?q WHERE { ?q property:P1001 resource:Q424 . ?q rdf:type ontology:Q192350 }
Ministry of Rural Development
The Ministry of Rural Development has jurisdiction over that administrative territory
Ministry of Rural Development
action filter_type
action find_reverse
entity Cambodia
relation applies to jurisdiction
type ministry
[{'concept': 'ministry'}, 'applies to jurisdiction', 'Cambodia']
SELECT DISTINCT ?q WHERE { ?q property:applies_to_jurisdiction resource:Cambodia . ?q rdf:type ontology:ministry }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q25203582
P17
Q15617994
USER
Which administrative territory does that ministry belong to ?
(Q25203582,P17,c(Q15617994))
action filter_type
action find
entity Q25203582
relation P17
type Q15617994
['Q25203582', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { resource:Q25203582 property:P17 ?d . ?d rdf:type ontology:Q15617994 }
Ministry of Rural Development
action filter_type
action find
entity Ministry of Rural Development
relation country
type designation for an administrative territorial entity
['Ministry of Rural Development', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Ministry_of_Rural_Development property:country ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q424
SYSTEM
Cambodia
Q424
(Q25203582,P17,c(Q15617994))
action filter_type
action find
entity Q25203582
relation P17
type Q15617994
That ministry belongs to the [ANSWER]
['Q25203582', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { resource:Q25203582 property:P17 ?d . ?d rdf:type ontology:Q15617994 }
Cambodia
That ministry belongs to the Cambodia
Cambodia
action filter_type
action find
entity Ministry of Rural Development
relation country
type designation for an administrative territorial entity
['Ministry of Rural Development', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Ministry_of_Rural_Development property:country ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q424 Q373077
P17
Q15617994
USER
Is that one situated in Gräfenhainichen ?
(Q424,P17,Q373077)
action is_in
entity Q373077
action find
entity Q424
relation P17
['Q424', 'P17', 'Q373077']
ASK WHERE { resource:Q424 property:P17 resource:Q373077 }
Cambodia Gräfenhainichen
action is_in
entity Gräfenhainichen
action find
entity Cambodia
relation country
['Cambodia', 'country', 'Gräfenhainichen']
ASK WHERE { resource:Cambodia property:country resource:Gräfenhainichen }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q424,P17,Q373077)
action is_in
entity Q373077
action find
entity Q424
relation P17
[ANSWER]
['Q424', 'P17', 'Q373077']
ASK WHERE { resource:Q424 property:P17 resource:Q373077 }
No
action is_in
entity Gräfenhainichen
action find
entity Cambodia
relation country
['Cambodia', 'country', 'Gräfenhainichen']
ASK WHERE { resource:Cambodia property:country resource:Gräfenhainichen }
[]