Simple Question (Direct)
Simple Question
Q682478
P19
Q56061
USER
Which administrative territory is the birthplace of Jacopo Sadoleto ?
(Q682478,P19,c(Q56061))
action filter_type
action find
entity Q682478
relation P19
type Q56061
['Q682478', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { resource:Q682478 property:P19 ?z . ?z rdf:type ontology:Q56061 }
Jacopo Sadoleto
action filter_type
action find
entity Jacopo Sadoleto
relation place of birth
type administrative territorial entity
['Jacopo Sadoleto', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Jacopo_Sadoleto property:place_of_birth ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q279
SYSTEM
Modena
Q279
(Q682478,P19,c(Q56061))
action filter_type
action find
entity Q682478
relation P19
type Q56061
The [ANSWER] is the birthplace of Jacopo Sadoleto
['Q682478', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { resource:Q682478 property:P19 ?z . ?z rdf:type ontology:Q56061 }
Modena
The Modena is the birthplace of Jacopo Sadoleto
Modena
action filter_type
action find
entity Jacopo Sadoleto
relation place of birth
type administrative territorial entity
['Jacopo Sadoleto', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Jacopo_Sadoleto property:place_of_birth ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q279
P127
Q483110
USER
Which stadium is owned by that administrative territory ?
(c(Q483110),P127,Q279)
action filter_type
action find_reverse
entity Q279
relation P127
type Q483110
[{'concept': 'Q483110'}, 'P127', 'Q279']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q483110 . ?a property:P127 resource:Q279 }
Modena
action filter_type
action find_reverse
entity Modena
relation owned by
type stadium
[{'concept': 'stadium'}, 'owned by', 'Modena']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:stadium . ?a property:owned_by resource:Modena }
[]
stadium
Q94646
SYSTEM
Stadio Alberto Braglia
Q94646
(c(Q483110),P127,Q279)
action filter_type
action find_reverse
entity Q279
relation P127
type Q483110
[ANSWER] is owned by that administrative territory
[{'concept': 'Q483110'}, 'P127', 'Q279']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q483110 . ?a property:P127 resource:Q279 }
Stadio Alberto Braglia
Stadio Alberto Braglia is owned by that administrative territory
Stadio Alberto Braglia
action filter_type
action find_reverse
entity Modena
relation owned by
type stadium
[{'concept': 'stadium'}, 'owned by', 'Modena']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:stadium . ?a property:owned_by resource:Modena }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q279
P190
Q56061
USER
Which administrative territories are twin city of that one ?
(c(Q56061),P190,Q94646)
action filter_type
action find
entity Q279
relation P190
type Q56061
[{'concept': 'Q56061'}, 'P190', 'Q94646']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q56061 . resource:Q279 property:P190 ?k }
Modena
action filter_type
action find
entity Modena
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Stadio Alberto Braglia']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:administrative_territorial_entity . resource:Modena property:sister_city ?k }
[]
administrative territorial entity
Q41329 Q55630 Q35493
SYSTEM
Linz, Novi Sad, Almaty
Q55630 Q41329 Q28848 Q35493
(c(Q56061),P190,Q94646)
action filter_type
action find
entity Q279
relation P190
type Q56061
[ANSWERS] are twin city of that one
[{'concept': 'Q56061'}, 'P190', 'Q94646']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q56061 . resource:Q279 property:P190 ?k }
Novi Sad Linz Saint Paul Almaty
Linz, Novi Sad and Almaty are twin city of that one
Linz Novi Sad Almaty
action filter_type
action find
entity Modena
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Stadio Alberto Braglia']
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:administrative_territorial_entity . resource:Modena property:sister_city ?k }
[]
Clarification
Simple Question|Single Entity|Indirect
Q35493
P1427
Q2912397
USER
Which single-day races have that administrative territory as the start location ?
(c(Q2912397),P1427,Q35493)
action filter_type
action find_reverse
entity Q35493
relation P1427
type Q2912397
[{'concept': 'Q2912397'}, 'P1427', 'Q35493']
SELECT DISTINCT ?k WHERE { ?k property:P1427 resource:Q35493 . ?k rdf:type ontology:Q2912397 }
Almaty
action filter_type
action find_reverse
entity Almaty
relation start point
type single-day race
[{'concept': 'single-day race'}, 'start point', 'Almaty']
SELECT DISTINCT ?k WHERE { ?k property:start_point resource:Almaty . ?k rdf:type ontology:single-day_race }
[]
single-day race
Clarification for simple ques.
Q41329
SYSTEM
Did you mean Linz ?
Q41329 Q55630 Q35493
(c(Q2912397),P1427,Q41329) (c(Q2912397),P1427,Q55630) (c(Q2912397),P1427,Q35493)
[ANSWER]
[{'concept': 'Q2912397'}, 'P1427', 'Q41329'] [{'concept': 'Q2912397'}, 'P1427', 'Q55630'] [{'concept': 'Q2912397'}, 'P1427', 'Q35493']
SELECT DISTINCT ?k WHERE { ?k property:P1427 resource:Q35493 . ?k rdf:type ontology:Q2912397 }
Linz Novi Sad Almaty
Did you mean Linz ?
Linz
[{'concept': 'single-day race'}, 'start point', 'Linz'] [{'concept': 'single-day race'}, 'start point', 'Novi Sad'] [{'concept': 'single-day race'}, 'start point', 'Almaty']
SELECT DISTINCT ?k WHERE { ?k property:start_point resource:Almaty . ?k rdf:type ontology:single-day_race }
[]
Simple Question (Coreferenced)
USER
No, I meant Almaty. Could you tell me the answer for that?
(c(Q2912397),P1427,Q35493)
Q35493
[{'concept': 'Q2912397'}, 'P1427', 'Q35493']
[{'concept': 'single-day race'}, 'start point', 'Almaty']
[]
Q15851289 Q18326475 Q21847092
SYSTEM
2013 Tour of Almaty, 2014 Tour of Almaty, 2015 Tour of Almaty
Q15851289 Q18326475 Q21847092
(c(Q2912397),P1427,Q35493)
action filter_type
action find_reverse
entity Q35493
relation P1427
type Q2912397
[ANSWERS]
[{'concept': 'Q2912397'}, 'P1427', 'Q35493']
SELECT DISTINCT ?k WHERE { ?k property:P1427 resource:Q35493 . ?k rdf:type ontology:Q2912397 }
2013 Tour of Almaty 2014 Tour of Almaty 2015 Tour of Almaty
Which single-day races have that administrative territory as the start location
2013 Tour of Almaty 2014 Tour of Almaty 2015 Tour of Almaty
action filter_type
action find_reverse
entity Almaty
relation start point
type single-day race
[{'concept': 'single-day race'}, 'start point', 'Almaty']
SELECT DISTINCT ?k WHERE { ?k property:start_point resource:Almaty . ?k rdf:type ontology:single-day_race }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q35493
P127
Q1076486 Q811979
USER
How many sports venues or architectural structures are owned by Almaty ?
(c(Q1076486),P127,Q35493) (c(Q811979),P127,Q35493)
action count
action union
action filter_type
action find_reverse
entity Q35493
relation P127
type Q1076486
action filter_type
action find_reverse
entity Q35493
relation P127
type Q811979
[{'concept': 'Q1076486'}, 'P127', 'Q35493'] [{'concept': 'Q811979'}, 'P127', 'Q35493']
SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) WHERE { { ?x property:P127 resource:Q35493 . ?x rdf:type ontology:Q1076486 } UNION { ?x property:P127 resource:Q35493 . ?x rdf:type ontology:Q811979 } }
Almaty
action count
action union
action filter_type
action find_reverse
entity Almaty
relation owned by
type sports venue
action filter_type
action find_reverse
entity Almaty
relation owned by
type architectural structure
[{'concept': 'sports venue'}, 'owned by', 'Almaty'] [{'concept': 'architectural structure'}, 'owned by', 'Almaty']
SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) WHERE { { ?x property:owned_by resource:Almaty . ?x rdf:type ontology:sports_venue } UNION { ?x property:owned_by resource:Almaty . ?x rdf:type ontology:architectural_structure } }
[]
sports venue architectural structure
SYSTEM
2
Q864796 Q190788
(c(Q1076486),P127,Q35493) (c(Q811979),P127,Q35493)
action count
action union
action filter_type
action find_reverse
entity Q35493
relation P127
type Q1076486
action filter_type
action find_reverse
entity Q35493
relation P127
type Q811979
[ANSWER]
[{'concept': 'Q1076486'}, 'P127', 'Q35493'] [{'concept': 'Q811979'}, 'P127', 'Q35493']
SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) WHERE { { ?x property:P127 resource:Q35493 . ?x rdf:type ontology:Q1076486 } UNION { ?x property:P127 resource:Q35493 . ?x rdf:type ontology:Q811979 } }
Medeo Almaty Central Stadium
2
action count
action union
action filter_type
action find_reverse
entity Almaty
relation owned by
type sports venue
action filter_type
action find_reverse
entity Almaty
relation owned by
type architectural structure
[{'concept': 'sports venue'}, 'owned by', 'Almaty'] [{'concept': 'architectural structure'}, 'owned by', 'Almaty']
SELECT DISTINCT ( COUNT ( ?x ) AS ?k ) WHERE { { ?x property:owned_by resource:Almaty . ?x rdf:type ontology:sports_venue } UNION { ?x property:owned_by resource:Almaty . ?x rdf:type ontology:architectural_structure } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q193592 Q35493
P413 P19
Q502895
USER
Which people have place of birth as Almaty and play in midfielder position ?
AND((c(Q502895),P19,Q35493), (c(Q502895),P413,Q193592))
action filter_type
action intersection
action find_reverse
entity Q35493
relation P19
action find_reverse
entity Q193592
relation P413
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q35493'], [{'concept': 'Q502895'}, 'P413', 'Q193592']]}
SELECT DISTINCT ?c WHERE { ?c property:P413 resource:Q193592 . ?c property:P19 resource:Q35493 . ?c rdf:type ontology:Q502895 }
midfielder Almaty
action filter_type
action intersection
action find_reverse
entity Almaty
relation place of birth
action find_reverse
entity midfielder
relation position played on team / speciality
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Almaty'], [{'concept': 'common name'}, 'position played on team / speciality', 'midfielder']]}
SELECT DISTINCT ?c WHERE { ?c property:position_played_on_team_/_speciality resource:midfielder . ?c property:place_of_birth resource:Almaty . ?c rdf:type ontology:common_name }
[]
common name
Q327205 Q4720762 Q981118 Q983522 Q1087714 Q3956358 Q2626617 Q4534901 Q4062308 Q7453622
SYSTEM
Some of them are Alexander Merkel, Alexandra Svetlitskaya, Ruslan Baltiev, Zhambyl Kukeyev, Ali Aliyev, Sergei Kutivadze, Savvas Kofidis, Igor Yurin, Piraliy Aliev, Sergei Larin
Q3956358 Q2626617 Q1377739 Q4534901 Q7453622 Q978489 Q1087714 Q981118 Q4132168 Q4720762 Q4062308 Q327205 Q1072565 Q983522
AND((c(Q502895),P19,Q35493), (c(Q502895),P413,Q193592))
action filter_type
action intersection
action find_reverse
entity Q35493
relation P19
action find_reverse
entity Q193592
relation P413
type Q502895
[ANSWERS] have place of birth as Almaty and play in midfielder position
{'AND': [[{'concept': 'Q502895'}, 'P19', 'Q35493'], [{'concept': 'Q502895'}, 'P413', 'Q193592']]}
SELECT DISTINCT ?c WHERE { ?c property:P413 resource:Q193592 . ?c property:P19 resource:Q35493 . ?c rdf:type ontology:Q502895 }
Sergei Kutivadze Savvas Kofidis Marat Shakhmetov Igor Yurin Sergei Larin Kairat Nurdauletov Ali Aliyev Ruslan Baltiev Arsen Naydyonov Alexandra Svetlitskaya Piraliy Aliev Alexander Merkel Sabyrkhan Ibraev Zhambyl Kukeyev
Alexander Merkel, Alexandra Svetlitskaya, Ruslan Baltiev, Zhambyl Kukeyev, Ali Aliyev, Sergei Kutivadze, Savvas Kofidis, Igor Yurin, Piraliy Aliev and Sergei Larin have place of birth as Almaty and play in midfielder position
Alexander Merkel Alexandra Svetlitskaya Ruslan Baltiev Zhambyl Kukeyev Ali Aliyev Sergei Kutivadze Savvas Kofidis Igor Yurin Piraliy Aliev Sergei Larin
action filter_type
action intersection
action find_reverse
entity Almaty
relation place of birth
action find_reverse
entity midfielder
relation position played on team / speciality
type common name
{'AND': [[{'concept': 'common name'}, 'place of birth', 'Almaty'], [{'concept': 'common name'}, 'position played on team / speciality', 'midfielder']]}
SELECT DISTINCT ?c WHERE { ?c property:position_played_on_team_/_speciality resource:midfielder . ?c property:place_of_birth resource:Almaty . ?c rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q873588
P1303
Q34379 Q502895
USER
How many musical instruments are played by lesser number of people than Jinghu ?
(c(Q502895),P1303,c(Q34379))
action count
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q873588
relation P1303
type Q502895
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?y ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?g ) AS ?z ) WHERE { ?p rdf:type ontology:Q34379 . ?g rdf:type ontology:Q502895 . ?g property:P1303 ?p } GROUP BY ?p } . FILTER ( ?z < ?b ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) WHERE { ?k property:P1303 resource:Q873588 . ?k rdf:type ontology:Q502895 } } }
Jinghu
action count
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity Jinghu
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?y ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?g ) AS ?z ) WHERE { ?p rdf:type ontology:musical_instrument . ?g rdf:type ontology:common_name . ?g property:instrument ?p } GROUP BY ?p } . FILTER ( ?z < ?b ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) WHERE { ?k property:instrument resource:Jinghu . ?k rdf:type ontology:common_name } } }
[]
musical instrument common name
SYSTEM
3
Q1879664 Q748455 Q173453
(c(Q502895),P1303,c(Q34379))
action count
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q873588
relation P1303
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?y ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?g ) AS ?z ) WHERE { ?p rdf:type ontology:Q34379 . ?g rdf:type ontology:Q502895 . ?g property:P1303 ?p } GROUP BY ?p } . FILTER ( ?z < ?b ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) WHERE { ?k property:P1303 resource:Q873588 . ?k rdf:type ontology:Q502895 } } }
spoon cajón wind instrument
3
action count
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity Jinghu
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?y ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?g ) AS ?z ) WHERE { ?p rdf:type ontology:musical_instrument . ?g rdf:type ontology:common_name . ?g property:instrument ?p } GROUP BY ?p } . FILTER ( ?z < ?b ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) WHERE { ?k property:instrument resource:Jinghu . ?k rdf:type ontology:common_name } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q158504
P88
Q502895 Q234460 Q15850590
USER
How many people did the commissioning of more number of texts or theatrical genres than Clement of Ohrid ?
(c(Q234460)|c(Q15850590),P88,c(Q502895))
action count
action greater
action union
action find_reverse_tuple_counts
relation P88
type Q502895
type Q234460
action find_reverse_tuple_counts
relation P88
type Q502895
type Q15850590
action count
action filter_multi_types
action find_reverse
entity Q158504
relation P88
type Q234460
type Q15850590
[[{'concept': 'Q234460'}, {'concept': 'Q15850590'}], 'P88', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?a ) WHERE { FILTER ( ?t > ?b ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) WHERE { ?l property:P88 resource:Q158504 . { VALUES ( ?y ) { ( ontology:Q15850590 ) ( ontology:Q234460 ) } . ?l rdf:type ?y } } } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) ?p WHERE { { ?c property:P88 ?p . ?p rdf:type ontology:Q502895 . ?c rdf:type ontology:Q234460 } UNION { ?c property:P88 ?p . ?c rdf:type ontology:Q15850590 . ?p rdf:type ontology:Q502895 } } GROUP BY ?p } }
Clement of Ohrid
action count
action greater
action union
action find_reverse_tuple_counts
relation commissioned by
type common name
type text
action find_reverse_tuple_counts
relation commissioned by
type common name
type theatrical genre
action count
action filter_multi_types
action find_reverse
entity Clement of Ohrid
relation commissioned by
type text
type theatrical genre
[[{'concept': 'text'}, {'concept': 'theatrical genre'}], 'commissioned by', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?a ) WHERE { FILTER ( ?t > ?b ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) WHERE { ?l property:commissioned_by resource:Clement_of_Ohrid . { VALUES ( ?y ) { ( ontology:theatrical_genre ) ( ontology:text ) } . ?l rdf:type ?y } } } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) ?p WHERE { { ?c property:commissioned_by ?p . ?p rdf:type ontology:common_name . ?c rdf:type ontology:text } UNION { ?c property:commissioned_by ?p . ?c rdf:type ontology:theatrical_genre . ?p rdf:type ontology:common_name } } GROUP BY ?p } }
[]
common name text theatrical genre
SYSTEM
8
Q459684 Q76555 Q37594 Q446077 Q436126 Q237149 Q1527009 Q8597
(c(Q234460)|c(Q15850590),P88,c(Q502895))
action count
action greater
action union
action find_reverse_tuple_counts
relation P88
type Q502895
type Q234460
action find_reverse_tuple_counts
relation P88
type Q502895
type Q15850590
action count
action filter_multi_types
action find_reverse
entity Q158504
relation P88
type Q234460
type Q15850590
[ANSWER]
[[{'concept': 'Q234460'}, {'concept': 'Q15850590'}], 'P88', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?a ) WHERE { FILTER ( ?t > ?b ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) WHERE { ?l property:P88 resource:Q158504 . { VALUES ( ?y ) { ( ontology:Q15850590 ) ( ontology:Q234460 ) } . ?l rdf:type ?y } } } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) ?p WHERE { { ?c property:P88 ?p . ?p rdf:type ontology:Q502895 . ?c rdf:type ontology:Q234460 } UNION { ?c property:P88 ?p . ?c rdf:type ontology:Q15850590 . ?p rdf:type ontology:Q502895 } } GROUP BY ?p } }
Kunigunde of Bohemia Joseph II William I of England Léon Carvalho Reinhard Keiser Ida Rubinstein Albert von Bardewik Akbar
8
action count
action greater
action union
action find_reverse_tuple_counts
relation commissioned by
type common name
type text
action find_reverse_tuple_counts
relation commissioned by
type common name
type theatrical genre
action count
action filter_multi_types
action find_reverse
entity Clement of Ohrid
relation commissioned by
type text
type theatrical genre
[[{'concept': 'text'}, {'concept': 'theatrical genre'}], 'commissioned by', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?a ) WHERE { FILTER ( ?t > ?b ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) WHERE { ?l property:commissioned_by resource:Clement_of_Ohrid . { VALUES ( ?y ) { ( ontology:theatrical_genre ) ( ontology:text ) } . ?l rdf:type ?y } } } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?t ) ?p WHERE { { ?c property:commissioned_by ?p . ?p rdf:type ontology:common_name . ?c rdf:type ontology:text } UNION { ?c property:commissioned_by ?p . ?c rdf:type ontology:theatrical_genre . ?p rdf:type ontology:common_name } } GROUP BY ?p } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q520493
P88
Q502895 Q234460 Q15850590
USER
And what about Michael Tilson Thomas?
(c(Q234460)|c(Q15850590),P88,c(Q502895))
action count
action greater
action union
action find_reverse_tuple_counts
relation P88
type Q502895
type Q234460
action find_reverse_tuple_counts
relation P88
type Q502895
type Q15850590
action count
action filter_multi_types
action find_reverse
entity Q520493
relation P88
type Q234460
type Q15850590
[[{'concept': 'Q234460'}, {'concept': 'Q15850590'}], 'P88', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?a ) AS ?l ) WHERE { VALUES ( ?o ) { ( ontology:Q234460 ) ( ontology:Q15850590 ) } . ?a rdf:type ?o } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?n ) WHERE { ?s property:P88 resource:Q520493 . { { ?s rdf:type ontology:Q234460 } UNION { ?s rdf:type ontology:Q15850590 } } } } . FILTER ( ?l > ?n ) }
Michael Tilson Thomas
action count
action greater
action union
action find_reverse_tuple_counts
relation commissioned by
type common name
type text
action find_reverse_tuple_counts
relation commissioned by
type common name
type theatrical genre
action count
action filter_multi_types
action find_reverse
entity Michael Tilson Thomas
relation commissioned by
type text
type theatrical genre
[[{'concept': 'text'}, {'concept': 'theatrical genre'}], 'commissioned by', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?a ) AS ?l ) WHERE { VALUES ( ?o ) { ( ontology:text ) ( ontology:theatrical_genre ) } . ?a rdf:type ?o } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?n ) WHERE { ?s property:commissioned_by resource:Michael_Tilson_Thomas . { { ?s rdf:type ontology:text } UNION { ?s rdf:type ontology:theatrical_genre } } } } . FILTER ( ?l > ?n ) }
[]
common name text theatrical genre
SYSTEM
8
Q459684 Q76555 Q37594 Q446077 Q436126 Q237149 Q1527009 Q8597
(c(Q234460)|c(Q15850590),P88,c(Q502895))
action count
action greater
action union
action find_reverse_tuple_counts
relation P88
type Q502895
type Q234460
action find_reverse_tuple_counts
relation P88
type Q502895
type Q15850590
action count
action filter_multi_types
action find_reverse
entity Q520493
relation P88
type Q234460
type Q15850590
[ANSWER]
[[{'concept': 'Q234460'}, {'concept': 'Q15850590'}], 'P88', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?a ) AS ?l ) WHERE { VALUES ( ?o ) { ( ontology:Q234460 ) ( ontology:Q15850590 ) } . ?a rdf:type ?o } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?n ) WHERE { ?s property:P88 resource:Q520493 . { { ?s rdf:type ontology:Q234460 } UNION { ?s rdf:type ontology:Q15850590 } } } } . FILTER ( ?l > ?n ) }
Kunigunde of Bohemia Joseph II William I of England Léon Carvalho Reinhard Keiser Ida Rubinstein Albert von Bardewik Akbar
8
action count
action greater
action union
action find_reverse_tuple_counts
relation commissioned by
type common name
type text
action find_reverse_tuple_counts
relation commissioned by
type common name
type theatrical genre
action count
action filter_multi_types
action find_reverse
entity Michael Tilson Thomas
relation commissioned by
type text
type theatrical genre
[[{'concept': 'text'}, {'concept': 'theatrical genre'}], 'commissioned by', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?m ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?a ) AS ?l ) WHERE { VALUES ( ?o ) { ( ontology:text ) ( ontology:theatrical_genre ) } . ?a rdf:type ?o } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?n ) WHERE { ?s property:commissioned_by resource:Michael_Tilson_Thomas . { { ?s rdf:type ontology:text } UNION { ?s rdf:type ontology:theatrical_genre } } } } . FILTER ( ?l > ?n ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q981118
P54
Q1194951
USER
Which national sports team is Ruslan Baltiev a member of ?
(Q981118,P54,c(Q1194951))
action filter_type
action find
entity Q981118
relation P54
type Q1194951
['Q981118', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?s WHERE { resource:Q981118 property:P54 ?s . ?s rdf:type ontology:Q1194951 }
Ruslan Baltiev
action filter_type
action find
entity Ruslan Baltiev
relation member of sports team
type national sports team
['Ruslan Baltiev', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?s WHERE { resource:Ruslan_Baltiev property:member_of_sports_team ?s . ?s rdf:type ontology:national_sports_team }
[]
national sports team
Q183468
SYSTEM
Kazakhstan national football team
Q183468
(Q981118,P54,c(Q1194951))
action filter_type
action find
entity Q981118
relation P54
type Q1194951
And [ANSWER] is Ruslan Baltiev a member of
['Q981118', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?s WHERE { resource:Q981118 property:P54 ?s . ?s rdf:type ontology:Q1194951 }
Kazakhstan national football team
And Kazakhstan national football team is Ruslan Baltiev a member of
Kazakhstan national football team
action filter_type
action find
entity Ruslan Baltiev
relation member of sports team
type national sports team
['Ruslan Baltiev', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?s WHERE { resource:Ruslan_Baltiev property:member_of_sports_team ?s . ?s rdf:type ontology:national_sports_team }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q293007
Q1194951
USER
And what about Ólafur Ingi Skúlason?
(Q293007,P54,c(Q1194951))
action filter_type
action find
entity Q293007
relation P54
type Q1194951
['Q293007', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?m WHERE { resource:Q293007 property:P54 ?m . ?m rdf:type ontology:Q1194951 }
Ólafur Ingi Skúlason
action filter_type
action find
entity Ólafur Ingi Skúlason
relation member of sports team
type national sports team
['Ólafur Ingi Skúlason', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?m WHERE { resource:Ólafur_Ingi_Skúlason property:member_of_sports_team ?m . ?m rdf:type ontology:national_sports_team }
[]
national sports team
Q189198
SYSTEM
Iceland national football team
Q189198
(Q293007,P54,c(Q1194951))
action filter_type
action find
entity Q293007
relation P54
type Q1194951
[ANSWER]
['Q293007', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?m WHERE { resource:Q293007 property:P54 ?m . ?m rdf:type ontology:Q1194951 }
Iceland national football team
Iceland national football team
action filter_type
action find
entity Ólafur Ingi Skúlason
relation member of sports team
type national sports team
['Ólafur Ingi Skúlason', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?m WHERE { resource:Ólafur_Ingi_Skúlason property:member_of_sports_team ?m . ?m rdf:type ontology:national_sports_team }
[]