Simple Question (Direct)
Simple Question
Q1373926
P641
Q31629
USER
Which type of sport was Kristijan Đurasek a part of ?
(Q1373926,P641,c(Q31629))
action filter_type
action find
entity Q1373926
relation P641
type Q31629
['Q1373926', 'P641', {'concept': 'Q31629'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q31629 . resource:Q1373926 property:P641 ?m }
Kristijan Đurasek
action filter_type
action find
entity Kristijan Đurasek
relation sport
type type of sport
['Kristijan Đurasek', 'sport', {'concept': 'type of sport'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:type_of_sport . resource:Kristijan_Đurasek property:sport ?m }
[]
type of sport
Q3609
SYSTEM
road bicycle racing
Q3609
(Q1373926,P641,c(Q31629))
action filter_type
action find
entity Q1373926
relation P641
type Q31629
The [ANSWER] was Kristijan Đurasek a part of
['Q1373926', 'P641', {'concept': 'Q31629'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q31629 . resource:Q1373926 property:P641 ?m }
road bicycle racing
The road bicycle racing was Kristijan Đurasek a part of
road bicycle racing
action filter_type
action find
entity Kristijan Đurasek
relation sport
type type of sport
['Kristijan Đurasek', 'sport', {'concept': 'type of sport'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:type_of_sport . resource:Kristijan_Đurasek property:sport ?m }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3609
P2416
Q502895
USER
Which person participated in that type of sport ?
(c(Q502895),P2416,Q3609)
action filter_type
action find_reverse
entity Q3609
relation P2416
type Q502895
[{'concept': 'Q502895'}, 'P2416', 'Q3609']
SELECT DISTINCT ?i WHERE { ?i property:P2416 resource:Q3609 . ?i rdf:type ontology:Q502895 }
road bicycle racing
action filter_type
action find_reverse
entity road bicycle racing
relation sports discipline competed in
type common name
[{'concept': 'common name'}, 'sports discipline competed in', 'road bicycle racing']
SELECT DISTINCT ?i WHERE { ?i property:sports_discipline_competed_in resource:road_bicycle_racing . ?i rdf:type ontology:common_name }
[]
common name
Q22271507
SYSTEM
Luisa Daniela Hernandez
Q22271507
(c(Q502895),P2416,Q3609)
action filter_type
action find_reverse
entity Q3609
relation P2416
type Q502895
[ANSWER] participated in that type of sport
[{'concept': 'Q502895'}, 'P2416', 'Q3609']
SELECT DISTINCT ?i WHERE { ?i property:P2416 resource:Q3609 . ?i rdf:type ontology:Q502895 }
Luisa Daniela Hernandez
Luisa Daniela Hernandez participated in that type of sport
Luisa Daniela Hernandez
action filter_type
action find_reverse
entity road bicycle racing
relation sports discipline competed in
type common name
[{'concept': 'common name'}, 'sports discipline competed in', 'road bicycle racing']
SELECT DISTINCT ?i WHERE { ?i property:sports_discipline_competed_in resource:road_bicycle_racing . ?i rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3609
P425
Q12737077
USER
Which occupation does that type of sport belong to ?
(c(Q12737077),P425,Q22271507)
action filter_type
action find_reverse
entity Q3609
relation P425
type Q12737077
[{'concept': 'Q12737077'}, 'P425', 'Q22271507']
SELECT DISTINCT ?v WHERE { ?v property:P425 resource:Q3609 . ?v rdf:type ontology:Q12737077 }
road bicycle racing
action filter_type
action find_reverse
entity road bicycle racing
relation field of this occupation
type occupation
[{'concept': 'occupation'}, 'field of this occupation', 'Luisa Daniela Hernandez']
SELECT DISTINCT ?v WHERE { ?v property:field_of_this_occupation resource:road_bicycle_racing . ?v rdf:type ontology:occupation }
[]
occupation
Q2309784
SYSTEM
sport cyclist
Q2309784
(c(Q12737077),P425,Q22271507)
action filter_type
action find_reverse
entity Q3609
relation P425
type Q12737077
That type of sport belongs to the [ANSWER]
[{'concept': 'Q12737077'}, 'P425', 'Q22271507']
SELECT DISTINCT ?v WHERE { ?v property:P425 resource:Q3609 . ?v rdf:type ontology:Q12737077 }
sport cyclist
That type of sport belongs to the sport cyclist
sport cyclist
action filter_type
action find_reverse
entity road bicycle racing
relation field of this occupation
type occupation
[{'concept': 'occupation'}, 'field of this occupation', 'Luisa Daniela Hernandez']
SELECT DISTINCT ?v WHERE { ?v property:field_of_this_occupation resource:road_bicycle_racing . ?v rdf:type ontology:occupation }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P748
Q178706 Q1752346 Q12737077
USER
Which occupations were appointed by max number of institutions or assemblies ?
(c(Q12737077),P748,c(Q178706)|c(Q1752346))
action argmax
action union
action find_tuple_counts
relation P748
type Q12737077
type Q178706
action find_tuple_counts
relation P748
type Q12737077
type Q1752346
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q178706'}, {'concept': 'Q1752346'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?u ) AS ?x ) { SELECT DISTINCT ?n ( COUNT ( ?z ) AS ?u ) WHERE { { ?n property:P748 ?z . ?n rdf:type ontology:Q12737077 . ?z rdf:type ontology:Q178706 } UNION { ?n property:P748 ?z . ?n rdf:type ontology:Q12737077 . ?z rdf:type ontology:Q1752346 } } GROUP BY ?n } } . { SELECT DISTINCT ?d ( COUNT ( ?b ) AS ?q ) WHERE { ?b rdf:type ?l . VALUES ( ?l ) { ( ontology:Q178706 ) ( ontology:Q1752346 ) } } GROUP BY ?d } . FILTER ( ?q = ?x ) }
action argmax
action union
action find_tuple_counts
relation appointed by
type occupation
type institution
action find_tuple_counts
relation appointed by
type occupation
type assembly
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'institution'}, {'concept': 'assembly'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?u ) AS ?x ) { SELECT DISTINCT ?n ( COUNT ( ?z ) AS ?u ) WHERE { { ?n property:appointed_by ?z . ?n rdf:type ontology:occupation . ?z rdf:type ontology:institution } UNION { ?n property:appointed_by ?z . ?n rdf:type ontology:occupation . ?z rdf:type ontology:assembly } } GROUP BY ?n } } . { SELECT DISTINCT ?d ( COUNT ( ?b ) AS ?q ) WHERE { ?b rdf:type ?l . VALUES ( ?l ) { ( ontology:institution ) ( ontology:assembly ) } } GROUP BY ?d } . FILTER ( ?q = ?x ) }
[]
institution assembly occupation
Q81066 Q842386 Q1370482
SYSTEM
United Nations Secretary-General, Prime Minister of Russia, President of Cuba
Q740126 Q15305714 Q842386 Q19056310 Q890030 Q1161813 Q796593 Q7574264 Q8882 Q3409203 Q327948 Q1370482 Q634291 Q735587 Q81066 Q628102
(c(Q12737077),P748,c(Q178706)|c(Q1752346))
action argmax
action union
action find_tuple_counts
relation P748
type Q12737077
type Q178706
action find_tuple_counts
relation P748
type Q12737077
type Q1752346
[ANSWERS] were appointed by max number of institutions or assemblies
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q178706'}, {'concept': 'Q1752346'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?u ) AS ?x ) { SELECT DISTINCT ?n ( COUNT ( ?z ) AS ?u ) WHERE { { ?n property:P748 ?z . ?n rdf:type ontology:Q12737077 . ?z rdf:type ontology:Q178706 } UNION { ?n property:P748 ?z . ?n rdf:type ontology:Q12737077 . ?z rdf:type ontology:Q1752346 } } GROUP BY ?n } } . { SELECT DISTINCT ?d ( COUNT ( ?b ) AS ?q ) WHERE { ?b rdf:type ?l . VALUES ( ?l ) { ( ontology:Q178706 ) ( ontology:Q1752346 ) } } GROUP BY ?d } . FILTER ( ?q = ?x ) }
President of the European Parliament Prime Minister of Libya Prime Minister of Russia President of Botswana State President of South Africa President of the United Nations General Assembly President of Malta Speaker of the Hellenic Parliament President of the European Commission President of Greece President of Israel President of Cuba High Representative of the Union for Foreign Affairs and Security Policy President of the European Council United Nations Secretary-General President of Nauru
United Nations Secretary-General, Prime Minister of Russia and President of Cuba were appointed by max number of institutions or assemblies
United Nations Secretary-General Prime Minister of Russia President of Cuba
action argmax
action union
action find_tuple_counts
relation appointed by
type occupation
type institution
action find_tuple_counts
relation appointed by
type occupation
type assembly
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'institution'}, {'concept': 'assembly'}]]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?u ) AS ?x ) { SELECT DISTINCT ?n ( COUNT ( ?z ) AS ?u ) WHERE { { ?n property:appointed_by ?z . ?n rdf:type ontology:occupation . ?z rdf:type ontology:institution } UNION { ?n property:appointed_by ?z . ?n rdf:type ontology:occupation . ?z rdf:type ontology:assembly } } GROUP BY ?n } } . { SELECT DISTINCT ?d ( COUNT ( ?b ) AS ?q ) WHERE { ?b rdf:type ?l . VALUES ( ?l ) { ( ontology:institution ) ( ontology:assembly ) } } GROUP BY ?d } . FILTER ( ?q = ?x ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1370482
P17
Q15617994
USER
Which administrative territory does that occupation belong to ?
(Q1370482,P17,c(Q15617994))
action filter_type
action find
entity Q1370482
relation P17
type Q15617994
['Q1370482', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q1370482 property:P17 ?y . ?y rdf:type ontology:Q15617994 }
President of Cuba
action filter_type
action find
entity President of Cuba
relation country
type designation for an administrative territorial entity
['President of Cuba', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:President_of_Cuba property:country ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q1370482
SYSTEM
Did you mean President of Cuba ?
Q81066 Q842386 Q1370482
(Q81066,P17,c(Q15617994)) (Q842386,P17,c(Q15617994)) (Q1370482,P17,c(Q15617994))
[ANSWER]
['Q81066', 'P17', {'concept': 'Q15617994'}] ['Q842386', 'P17', {'concept': 'Q15617994'}] ['Q1370482', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q1370482 property:P17 ?y . ?y rdf:type ontology:Q15617994 }
United Nations Secretary-General Prime Minister of Russia President of Cuba
Did you mean President of Cuba ?
President of Cuba
['United Nations Secretary-General', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Prime Minister of Russia', 'country', {'concept': 'designation for an administrative territorial entity'}] ['President of Cuba', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:President_of_Cuba property:country ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
Yes
(Q1370482,P17,c(Q15617994))
['Q1370482', 'P17', {'concept': 'Q15617994'}]
['President of Cuba', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
Q241
SYSTEM
Cuba
Q241
(Q1370482,P17,c(Q15617994))
action filter_type
action find
entity Q1370482
relation P17
type Q15617994
That occupation belongs to [ANSWER]
['Q1370482', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q1370482 property:P17 ?y . ?y rdf:type ontology:Q15617994 }
Cuba
That occupation belongs to Cuba
Cuba
action filter_type
action find
entity President of Cuba
relation country
type designation for an administrative territorial entity
['President of Cuba', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:President_of_Cuba property:country ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories holds diplomatic relationship with approximately 32 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 32
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?e ) AS ?o ) WHERE { ?t property:P530 ?e . ?e rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q15617994 } GROUP BY ?t } . FILTER ( ?o = 32 ) }
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 32
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?e ) AS ?o ) WHERE { ?t property:diplomatic_relation ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?t } . FILTER ( ?o = 32 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q159 Q30
SYSTEM
Russia, United States of America
Q159 Q30
(c(Q15617994),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 32
[ANSWERS] hold diplomatic relationship with approximately 32 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?e ) AS ?o ) WHERE { ?t property:P530 ?e . ?e rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q15617994 } GROUP BY ?t } . FILTER ( ?o = 32 ) }
Russia United States of America
Russia and United States of America hold diplomatic relationship with approximately 32 administrative territories
Russia United States of America
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 32
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?e ) AS ?o ) WHERE { ?t property:diplomatic_relation ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?t } . FILTER ( ?o = 32 ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q929
P530
Q15617994
USER
Do Central African Republic have ambassadorial relations with those ones ?
(Q929,P530,Q159) (Q929,P530,Q30)
action is_in
entity prev_answer
action find
entity Q929
relation P530
['Q929', 'P530', 'Q159'] ['Q929', 'P530', 'Q30']
ASK WHERE { resource:Q929 property:P530 ?j . VALUES ( ?j ) { ( resource:Q159 ) ( resource:Q30 ) } }
Central African Republic
action is_in
entity prev_answer
action find
entity Central African Republic
relation diplomatic relation
['Central African Republic', 'diplomatic relation', 'Russia'] ['Central African Republic', 'diplomatic relation', 'United States of America']
ASK WHERE { resource:Central_African_Republic property:diplomatic_relation ?j . VALUES ( ?j ) { ( resource:Russia ) ( resource:United_States_of_America ) } }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q929,P530,Q159) (Q929,P530,Q30)
action is_in
entity prev_answer
action find
entity Q929
relation P530
[ANSWER]
['Q929', 'P530', 'Q159'] ['Q929', 'P530', 'Q30']
ASK WHERE { resource:Q929 property:P530 ?j . VALUES ( ?j ) { ( resource:Q159 ) ( resource:Q30 ) } }
Yes
action is_in
entity prev_answer
action find
entity Central African Republic
relation diplomatic relation
['Central African Republic', 'diplomatic relation', 'Russia'] ['Central African Republic', 'diplomatic relation', 'United States of America']
ASK WHERE { resource:Central_African_Republic property:diplomatic_relation ?j . VALUES ( ?j ) { ( resource:Russia ) ( resource:United_States_of_America ) } }
[]