Simple Question (Direct)
Simple Question
Q1645859
P136
Q151885
USER
What is the genre of Joe Thomas ?
(Q1645859,P136,c(Q151885))
action filter_type
action find
entity Q1645859
relation P136
type Q151885
['Q1645859', 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q151885 . resource:Q1645859 property:P136 ?w }
Joe Thomas
action filter_type
action find
entity Joe Thomas
relation genre
type concept
['Joe Thomas', 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:concept . resource:Joe_Thomas property:genre ?w }
[]
concept
Q8341
SYSTEM
jazz
Q8341
(Q1645859,P136,c(Q151885))
action filter_type
action find
entity Q1645859
relation P136
type Q151885
The genre of Joe Thomas is a [ANSWER]
['Q1645859', 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q151885 . resource:Q1645859 property:P136 ?w }
jazz
The genre of Joe Thomas is a jazz
jazz
action filter_type
action find
entity Joe Thomas
relation genre
type concept
['Joe Thomas', 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:concept . resource:Joe_Thomas property:genre ?w }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q153167 Q1645859
P27
Q15617994
USER
Which administrative territories do Joe Thomas and Valdas Adamkus belong to ?
AND((Q1645859,P27,c(Q15617994)), (Q153167,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q1645859
relation P27
action find
entity Q153167
relation P27
type Q15617994
{'AND': [['Q1645859', 'P27', {'concept': 'Q15617994'}], ['Q153167', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { resource:Q153167 property:P27 ?r . resource:Q1645859 property:P27 ?r . ?r rdf:type ontology:Q15617994 }
Valdas Adamkus Joe Thomas
action filter_type
action intersection
action find
entity Joe Thomas
relation country of citizenship
action find
entity Valdas Adamkus
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Joe Thomas', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Valdas Adamkus', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { resource:Valdas_Adamkus property:country_of_citizenship ?r . resource:Joe_Thomas property:country_of_citizenship ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
AND((Q1645859,P27,c(Q15617994)), (Q153167,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q1645859
relation P27
action find
entity Q153167
relation P27
type Q15617994
Joe Thomas and Valdas Adamkus belong to [ANSWER]
{'AND': [['Q1645859', 'P27', {'concept': 'Q15617994'}], ['Q153167', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { resource:Q153167 property:P27 ?r . resource:Q1645859 property:P27 ?r . ?r rdf:type ontology:Q15617994 }
United States of America
Joe Thomas and Valdas Adamkus belong to United States of America
United States of America
action filter_type
action intersection
action find
entity Joe Thomas
relation country of citizenship
action find
entity Valdas Adamkus
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Joe Thomas', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Valdas Adamkus', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { resource:Valdas_Adamkus property:country_of_citizenship ?r . resource:Joe_Thomas property:country_of_citizenship ?r . ?r 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 have diplomatic relations with around 13 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 13
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?e ) AS ?b ) WHERE { ?n property:P530 ?e . ?e rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q15617994 } GROUP BY ?n } . FILTER ( ?b = 13 ) }
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 13
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?e ) AS ?b ) WHERE { ?n property:diplomatic_relation ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?n } . FILTER ( ?b = 13 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q142 Q953 Q148
SYSTEM
France, Zambia, People's Republic of China
Q801 Q805 Q668 Q414 Q142 Q145 Q148 Q403 Q43 Q796 Q794 Q347 Q17 Q79 Q1016 Q1011 Q953
(c(Q15617994),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 13
[ANSWERS] have diplomatic relations with around 13 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?e ) AS ?b ) WHERE { ?n property:P530 ?e . ?e rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q15617994 } GROUP BY ?n } . FILTER ( ?b = 13 ) }
Israel Yemen India Argentina France United Kingdom People's Republic of China Serbia Turkey Iraq Iran Liechtenstein Japan Egypt Libya Cape Verde Zambia
France, Zambia and People's Republic of China have diplomatic relations with around 13 administrative territories
France Zambia People's Republic of China
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 13
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?e ) AS ?b ) WHERE { ?n property:diplomatic_relation ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?n } . FILTER ( ?b = 13 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q153167
P166
Q618779
USER
How many awards were awarded to Valdas Adamkus ?
(Q153167,P166,c(Q618779))
action count
action filter_type
action find
entity Q153167
relation P166
type Q618779
['Q153167', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { resource:Q153167 property:P166 ?h . ?h rdf:type ontology:Q618779 }
Valdas Adamkus
action count
action filter_type
action find
entity Valdas Adamkus
relation award received
type award
['Valdas Adamkus', 'award received', {'concept': 'award'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { resource:Valdas_Adamkus property:award_received ?h . ?h rdf:type ontology:award }
[]
award
SYSTEM
6
Q20879799 Q10904959 Q15715257 Q84020 Q20857526 Q20859482
(Q153167,P166,c(Q618779))
action count
action filter_type
action find
entity Q153167
relation P166
type Q618779
[ANSWER]
['Q153167', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { resource:Q153167 property:P166 ?h . ?h rdf:type ontology:Q618779 }
Knights Grand Cross of the Order of the Netherlands Lion Grand Cross Special Class of the Order of Merit of the Federal Republic of Germany Grand Cross of the Order of Polonia Restituta Order of the White Eagle Collar of the Order of the Star of Romania Grand Collar of the Order of Prince Henry
6
action count
action filter_type
action find
entity Valdas Adamkus
relation award received
type award
['Valdas Adamkus', 'award received', {'concept': 'award'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { resource:Valdas_Adamkus property:award_received ?h . ?h rdf:type ontology:award }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q3350809
Q618779
USER
And what about Olivier Bellin?
(Q3350809,P166,c(Q618779))
action count
action filter_type
action find
entity Q3350809
relation P166
type Q618779
['Q3350809', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?i ) WHERE { resource:Q3350809 property:P166 ?l . ?l rdf:type ontology:Q618779 }
Olivier Bellin
action count
action filter_type
action find
entity Olivier Bellin
relation award received
type award
['Olivier Bellin', 'award received', {'concept': 'award'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?i ) WHERE { resource:Olivier_Bellin property:award_received ?l . ?l rdf:type ontology:award }
[]
award
SYSTEM
1
(Q3350809,P166,c(Q618779))
action count
action filter_type
action find
entity Q3350809
relation P166
type Q618779
[ANSWER]
['Q3350809', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?i ) WHERE { resource:Q3350809 property:P166 ?l . ?l rdf:type ontology:Q618779 }
1
action count
action filter_type
action find
entity Olivier Bellin
relation award received
type award
['Olivier Bellin', 'award received', {'concept': 'award'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?i ) WHERE { resource:Olivier_Bellin property:award_received ?l . ?l rdf:type ontology:award }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P17
Q15617994 Q83620 Q1076486
USER
How many administrative territories are approximately 13177 thoroughfares or sports venues situated in ?
(c(Q83620)|c(Q1076486),P17,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q83620
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q1076486
value 13177
[[{'concept': 'Q83620'}, {'concept': 'Q1076486'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?u ) ?h WHERE { { ?h rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q83620 . ?v property:P17 ?h } UNION { ?v property:P17 ?h . ?h rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q1076486 } } GROUP BY ?h } . FILTER ( ?u = 13177 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type thoroughfare
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type sports venue
value 13177
[[{'concept': 'thoroughfare'}, {'concept': 'sports venue'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?u ) ?h WHERE { { ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:thoroughfare . ?v property:country ?h } UNION { ?v property:country ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:sports_venue } } GROUP BY ?h } . FILTER ( ?u = 13177 ) }
[]
designation for an administrative territorial entity thoroughfare sports venue
SYSTEM
2
Q30 Q17
(c(Q83620)|c(Q1076486),P17,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q83620
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q1076486
value 13177
[ANSWER]
[[{'concept': 'Q83620'}, {'concept': 'Q1076486'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?u ) ?h WHERE { { ?h rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q83620 . ?v property:P17 ?h } UNION { ?v property:P17 ?h . ?h rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q1076486 } } GROUP BY ?h } . FILTER ( ?u = 13177 ) }
United States of America Japan
2
action count
action approx
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type thoroughfare
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type sports venue
value 13177
[[{'concept': 'thoroughfare'}, {'concept': 'sports venue'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?u ) ?h WHERE { { ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:thoroughfare . ?v property:country ?h } UNION { ?v property:country ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:sports_venue } } GROUP BY ?h } . FILTER ( ?u = 13177 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q3972182 Q148
P530 P17
Q15617994
USER
Which administrative territories holds diplomatic relationship with People's Republic of China and are Railway stations in Turin located in ?
AND((Q148,P530,c(Q15617994)), (Q3972182,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q148
relation P530
action find
entity Q3972182
relation P17
type Q15617994
{'AND': [['Q148', 'P530', {'concept': 'Q15617994'}], ['Q3972182', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { resource:Q3972182 property:P17 ?q . resource:Q148 property:P530 ?q . ?q rdf:type ontology:Q15617994 }
Railway stations in Turin People's Republic of China
action filter_type
action intersection
action find
entity People's Republic of China
relation diplomatic relation
action find
entity Railway stations in Turin
relation country
type designation for an administrative territorial entity
{'AND': [["People's Republic of China", 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Railway stations in Turin', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { resource:Railway_stations_in_Turin property:country ?q . resource:People's_Republic_of_China property:diplomatic_relation ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
AND((Q148,P530,c(Q15617994)), (Q3972182,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q148
relation P530
action find
entity Q3972182
relation P17
type Q15617994
[ANSWER] holds diplomatic relationship with People's Republic of China and are Railway stations in Turin located in
{'AND': [['Q148', 'P530', {'concept': 'Q15617994'}], ['Q3972182', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { resource:Q3972182 property:P17 ?q . resource:Q148 property:P530 ?q . ?q rdf:type ontology:Q15617994 }
Italy
Italy holds diplomatic relationship with People's Republic of China and are Railway stations in Turin located in
Italy
action filter_type
action intersection
action find
entity People's Republic of China
relation diplomatic relation
action find
entity Railway stations in Turin
relation country
type designation for an administrative territorial entity
{'AND': [["People's Republic of China", 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Railway stations in Turin', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { resource:Railway_stations_in_Turin property:country ?q . resource:People's_Republic_of_China property:diplomatic_relation ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]