Simple Question (Direct)
Simple Question
Q922888
P19
Q56061
USER
Which administrative territory is the place of birth of Mahamadou Sidibé ?
(Q922888,P19,c(Q56061))
action filter_type
action find
entity Q922888
relation P19
type Q56061
['Q922888', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q56061 . resource:Q922888 property:P19 ?m }
Mahamadou Sidibé
action filter_type
action find
entity Mahamadou Sidibé
relation place of birth
type administrative territorial entity
['Mahamadou Sidibé', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:administrative_territorial_entity . resource:Mahamadou_Sidibé property:place_of_birth ?m }
[]
administrative territorial entity
Q3703
SYSTEM
Bamako
Q3703
(Q922888,P19,c(Q56061))
action filter_type
action find
entity Q922888
relation P19
type Q56061
[ANSWER] is the place of birth of Mahamadou Sidibé
['Q922888', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q56061 . resource:Q922888 property:P19 ?m }
Bamako
Bamako is the place of birth of Mahamadou Sidibé
Bamako
action filter_type
action find
entity Mahamadou Sidibé
relation place of birth
type administrative territorial entity
['Mahamadou Sidibé', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:administrative_territorial_entity . resource:Mahamadou_Sidibé property:place_of_birth ?m }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3703
P159
Q7210356
USER
Which political organizations have their head office location at that administrative territory ?
(c(Q7210356),P159,Q3703)
action filter_type
action find_reverse
entity Q3703
relation P159
type Q7210356
[{'concept': 'Q7210356'}, 'P159', 'Q3703']
SELECT DISTINCT ?b WHERE { ?b property:P159 resource:Q3703 . ?b rdf:type ontology:Q7210356 }
Bamako
action filter_type
action find_reverse
entity Bamako
relation headquarters location
type political organization
[{'concept': 'political organization'}, 'headquarters location', 'Bamako']
SELECT DISTINCT ?b WHERE { ?b property:headquarters_location resource:Bamako . ?b rdf:type ontology:political_organization }
[]
political organization
Q429170 Q1163319 Q2838240
SYSTEM
African Democratic Rally, Sudanese Union – African Democratic Rally, Alliance for Democracy in Mali
Q1163319 Q429170 Q2838240 Q4157657 Q3419939
(c(Q7210356),P159,Q3703)
action filter_type
action find_reverse
entity Q3703
relation P159
type Q7210356
[ANSWERS] have their head office location at that administrative territory
[{'concept': 'Q7210356'}, 'P159', 'Q3703']
SELECT DISTINCT ?b WHERE { ?b property:P159 resource:Q3703 . ?b rdf:type ontology:Q7210356 }
Sudanese Union – African Democratic Rally African Democratic Rally Alliance for Democracy in Mali Democratic Union of the Malian People Rally for Mali
African Democratic Rally, Sudanese Union – African Democratic Rally and Alliance for Democracy in Mali have their head office location at that administrative territory
African Democratic Rally Sudanese Union – African Democratic Rally Alliance for Democracy in Mali
action filter_type
action find_reverse
entity Bamako
relation headquarters location
type political organization
[{'concept': 'political organization'}, 'headquarters location', 'Bamako']
SELECT DISTINCT ?b WHERE { ?b property:headquarters_location resource:Bamako . ?b rdf:type ontology:political_organization }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q429170 Q1163319 Q2838240
P159
Q56061
USER
Which administrative territories are the head offices of African Democratic Rally, Sudanese Union – African Democratic Rally and Alliance for Democracy in Mali ?
(Q429170,P159,c(Q56061)) (Q1163319,P159,c(Q56061)) (Q2838240,P159,c(Q56061))
action union
action filter_type
action find
entity Q429170
relation P159
type Q56061
action filter_type
action find
entity Q1163319
relation P159
type Q56061
action filter_type
action find
entity Q2838240
relation P159
type Q56061
['Q429170', 'P159', {'concept': 'Q56061'}] ['Q1163319', 'P159', {'concept': 'Q56061'}] ['Q2838240', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { ?n property:P159 ?q . VALUES ( ?n ) { ( resource:Q429170 ) ( resource:Q1163319 ) } }
African Democratic Rally Sudanese Union – African Democratic Rally Alliance for Democracy in Mali
action union
action filter_type
action find
entity African Democratic Rally
relation headquarters location
type administrative territorial entity
action filter_type
action find
entity Sudanese Union – African Democratic Rally
relation headquarters location
type administrative territorial entity
action filter_type
action find
entity Alliance for Democracy in Mali
relation headquarters location
type administrative territorial entity
['African Democratic Rally', 'headquarters location', {'concept': 'administrative territorial entity'}] ['Sudanese Union – African Democratic Rally', 'headquarters location', {'concept': 'administrative territorial entity'}] ['Alliance for Democracy in Mali', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?n property:headquarters_location ?q . VALUES ( ?n ) { ( resource:African_Democratic_Rally ) ( resource:Sudanese_Union_–_African_Democratic_Rally ) } }
[]
administrative territorial entity
Q3703 Q3703 Q3703
SYSTEM
Bamako
Q3703 Q3703 Q3703
(Q429170,P159,c(Q56061)) (Q1163319,P159,c(Q56061)) (Q2838240,P159,c(Q56061))
action union
action filter_type
action find
entity Q429170
relation P159
type Q56061
action filter_type
action find
entity Q1163319
relation P159
type Q56061
action filter_type
action find
entity Q2838240
relation P159
type Q56061
[ANSWER], [ANSWER] and [ANSWER] are the head offices of African Democratic Rally, Sudanese Union – African Democratic Rally and Alliance for Democracy in Mali
['Q429170', 'P159', {'concept': 'Q56061'}] ['Q1163319', 'P159', {'concept': 'Q56061'}] ['Q2838240', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { ?n property:P159 ?q . VALUES ( ?n ) { ( resource:Q429170 ) ( resource:Q1163319 ) } }
Bamako Bamako Bamako
Bamako, Bamako and Bamako are the head offices of African Democratic Rally, Sudanese Union – African Democratic Rally and Alliance for Democracy in Mali
Bamako Bamako Bamako
action union
action filter_type
action find
entity African Democratic Rally
relation headquarters location
type administrative territorial entity
action filter_type
action find
entity Sudanese Union – African Democratic Rally
relation headquarters location
type administrative territorial entity
action filter_type
action find
entity Alliance for Democracy in Mali
relation headquarters location
type administrative territorial entity
['African Democratic Rally', 'headquarters location', {'concept': 'administrative territorial entity'}] ['Sudanese Union – African Democratic Rally', 'headquarters location', {'concept': 'administrative territorial entity'}] ['Alliance for Democracy in Mali', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?n property:headquarters_location ?q . VALUES ( ?n ) { ( resource:African_Democratic_Rally ) ( resource:Sudanese_Union_–_African_Democratic_Rally ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q429170
P102
Q502895
USER
Who are the members of African Democratic Rally ?
(c(Q502895),P102,Q3703) (c(Q502895),P102,Q3703) (c(Q502895),P102,Q3703)
action filter_type
action find_reverse
entity Q429170
relation P102
type Q502895
[{'concept': 'Q502895'}, 'P102', 'Q3703'] [{'concept': 'Q502895'}, 'P102', 'Q3703'] [{'concept': 'Q502895'}, 'P102', 'Q3703']
SELECT DISTINCT ?g WHERE { ?g property:P102 resource:Q429170 . ?g rdf:type ontology:Q502895 }
African Democratic Rally
action filter_type
action find_reverse
entity African Democratic Rally
relation member of political party
type common name
[{'concept': 'common name'}, 'member of political party', 'Bamako'] [{'concept': 'common name'}, 'member of political party', 'Bamako'] [{'concept': 'common name'}, 'member of political party', 'Bamako']
SELECT DISTINCT ?g WHERE { ?g property:member_of_political_party resource:African_Democratic_Rally . ?g rdf:type ontology:common_name }
[]
common name
Q314355 Q3094008 Q310883
SYSTEM
Hamani Diori, Gabriel d'Arboussier, André Kolingba
Q3094008 Q314355 Q310883 Q741331
(c(Q502895),P102,Q3703) (c(Q502895),P102,Q3703) (c(Q502895),P102,Q3703)
action filter_type
action find_reverse
entity Q429170
relation P102
type Q502895
The members of African Democratic Rally are [ANSWERS]
[{'concept': 'Q502895'}, 'P102', 'Q3703'] [{'concept': 'Q502895'}, 'P102', 'Q3703'] [{'concept': 'Q502895'}, 'P102', 'Q3703']
SELECT DISTINCT ?g WHERE { ?g property:P102 resource:Q429170 . ?g rdf:type ontology:Q502895 }
Gabriel d'Arboussier Hamani Diori André Kolingba Ali Barraud
The members of African Democratic Rally are Hamani Diori, Gabriel d'Arboussier and André Kolingba
Hamani Diori Gabriel d'Arboussier André Kolingba
action filter_type
action find_reverse
entity African Democratic Rally
relation member of political party
type common name
[{'concept': 'common name'}, 'member of political party', 'Bamako'] [{'concept': 'common name'}, 'member of political party', 'Bamako'] [{'concept': 'common name'}, 'member of political party', 'Bamako']
SELECT DISTINCT ?g WHERE { ?g property:member_of_political_party resource:African_Democratic_Rally . ?g rdf:type ontology:common_name }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P937
Q515 Q56061
USER
How many cities or administrative territories are the work locations of that person ?
(Q314355,P937,c(Q515)) (Q314355,P937,c(Q56061)) (Q314355,P937,c(Q515)) (Q314355,P937,c(Q56061)) (Q3094008,P937,c(Q515)) (Q3094008,P937,c(Q56061)) (Q310883,P937,c(Q515)) (Q310883,P937,c(Q56061))
['Q314355', 'P937', {'concept': 'Q515'}] ['Q314355', 'P937', {'concept': 'Q56061'}] ['Q314355', 'P937', {'concept': 'Q515'}] ['Q314355', 'P937', {'concept': 'Q56061'}] ['Q3094008', 'P937', {'concept': 'Q515'}] ['Q3094008', 'P937', {'concept': 'Q56061'}] ['Q310883', 'P937', {'concept': 'Q515'}] ['Q310883', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q314355 property:Q27067654 ?z } UNION { resource:Q314355 property:Q27067654 ?y } UNION { resource:Q314355 property:Q27067654 ?z } UNION { resource:Q314355 property:Q27067654 ?y } UNION { resource:Q3094008 property:Q27067654 ?z } UNION { resource:Q3094008 property:Q27067654 ?y } UNION { resource:Q310883 property:Q27067654 ?z } UNION { resource:Q310883 property:Q27067654 ?y } } . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q56061 }
['Hamani Diori', 'work location', {'concept': 'city'}] ['Hamani Diori', 'work location', {'concept': 'administrative territorial entity'}] ['Hamani Diori', 'work location', {'concept': 'city'}] ['Hamani Diori', 'work location', {'concept': 'administrative territorial entity'}] ["Gabriel d'Arboussier", 'work location', {'concept': 'city'}] ["Gabriel d'Arboussier", 'work location', {'concept': 'administrative territorial entity'}] ['André Kolingba', 'work location', {'concept': 'city'}] ['André Kolingba', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Hamani_Diori property:work_location ?z } UNION { resource:Hamani_Diori property:work_location ?y } UNION { resource:Hamani_Diori property:work_location ?z } UNION { resource:Hamani_Diori property:work_location ?y } UNION { resource:Gabriel_d'Arboussier property:work_location ?z } UNION { resource:Gabriel_d'Arboussier property:work_location ?y } UNION { resource:André_Kolingba property:work_location ?z } UNION { resource:André_Kolingba property:work_location ?y } } . ?z rdf:type ontology:city . ?y rdf:type ontology:administrative_territorial_entity }
[]
city administrative territorial entity
Quantitative|Count|Mult. entity type|Clarification
Q310883
SYSTEM
Did you mean André Kolingba ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q314355 property:Q27067654 ?z } UNION { resource:Q314355 property:Q27067654 ?y } UNION { resource:Q314355 property:Q27067654 ?z } UNION { resource:Q314355 property:Q27067654 ?y } UNION { resource:Q3094008 property:Q27067654 ?z } UNION { resource:Q3094008 property:Q27067654 ?y } UNION { resource:Q310883 property:Q27067654 ?z } UNION { resource:Q310883 property:Q27067654 ?y } } . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q56061 }
Did you mean André Kolingba ?
André Kolingba
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Hamani_Diori property:work_location ?z } UNION { resource:Hamani_Diori property:work_location ?y } UNION { resource:Hamani_Diori property:work_location ?z } UNION { resource:Hamani_Diori property:work_location ?y } UNION { resource:Gabriel_d'Arboussier property:work_location ?z } UNION { resource:Gabriel_d'Arboussier property:work_location ?y } UNION { resource:André_Kolingba property:work_location ?z } UNION { resource:André_Kolingba property:work_location ?y } } . ?z rdf:type ontology:city . ?y rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Hamani Diori. Could you tell me the answer for that?
(Q314355,P937,c(Q515)) (Q314355,P937,c(Q56061)) (Q314355,P937,c(Q515)) (Q314355,P937,c(Q56061)) (Q3094008,P937,c(Q515)) (Q3094008,P937,c(Q56061)) (Q310883,P937,c(Q515)) (Q310883,P937,c(Q56061))
Q314355
['Q314355', 'P937', {'concept': 'Q515'}] ['Q314355', 'P937', {'concept': 'Q56061'}] ['Q314355', 'P937', {'concept': 'Q515'}] ['Q314355', 'P937', {'concept': 'Q56061'}] ['Q3094008', 'P937', {'concept': 'Q515'}] ['Q3094008', 'P937', {'concept': 'Q56061'}] ['Q310883', 'P937', {'concept': 'Q515'}] ['Q310883', 'P937', {'concept': 'Q56061'}]
['Hamani Diori', 'work location', {'concept': 'city'}] ['Hamani Diori', 'work location', {'concept': 'administrative territorial entity'}] ['Hamani Diori', 'work location', {'concept': 'city'}] ['Hamani Diori', 'work location', {'concept': 'administrative territorial entity'}] ["Gabriel d'Arboussier", 'work location', {'concept': 'city'}] ["Gabriel d'Arboussier", 'work location', {'concept': 'administrative territorial entity'}] ['André Kolingba', 'work location', {'concept': 'city'}] ['André Kolingba', 'work location', {'concept': 'administrative territorial entity'}]
[]
SYSTEM
2
Q239 Q6602
(Q314355,P937,c(Q515)) (Q314355,P937,c(Q56061)) (Q314355,P937,c(Q515)) (Q314355,P937,c(Q56061)) (Q3094008,P937,c(Q515)) (Q3094008,P937,c(Q56061)) (Q310883,P937,c(Q515)) (Q310883,P937,c(Q56061))
[ANSWER]
['Q314355', 'P937', {'concept': 'Q515'}] ['Q314355', 'P937', {'concept': 'Q56061'}] ['Q314355', 'P937', {'concept': 'Q515'}] ['Q314355', 'P937', {'concept': 'Q56061'}] ['Q3094008', 'P937', {'concept': 'Q515'}] ['Q3094008', 'P937', {'concept': 'Q56061'}] ['Q310883', 'P937', {'concept': 'Q515'}] ['Q310883', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q314355 property:Q27067654 ?z } UNION { resource:Q314355 property:Q27067654 ?y } UNION { resource:Q314355 property:Q27067654 ?z } UNION { resource:Q314355 property:Q27067654 ?y } UNION { resource:Q3094008 property:Q27067654 ?z } UNION { resource:Q3094008 property:Q27067654 ?y } UNION { resource:Q310883 property:Q27067654 ?z } UNION { resource:Q310883 property:Q27067654 ?y } } . ?z rdf:type ontology:Q7930989 . ?y rdf:type ontology:Q56061 }
Brussels Strasbourg
2
['Hamani Diori', 'work location', {'concept': 'city'}] ['Hamani Diori', 'work location', {'concept': 'administrative territorial entity'}] ['Hamani Diori', 'work location', {'concept': 'city'}] ['Hamani Diori', 'work location', {'concept': 'administrative territorial entity'}] ["Gabriel d'Arboussier", 'work location', {'concept': 'city'}] ["Gabriel d'Arboussier", 'work location', {'concept': 'administrative territorial entity'}] ['André Kolingba', 'work location', {'concept': 'city'}] ['André Kolingba', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Hamani_Diori property:work_location ?z } UNION { resource:Hamani_Diori property:work_location ?y } UNION { resource:Hamani_Diori property:work_location ?z } UNION { resource:Hamani_Diori property:work_location ?y } UNION { resource:Gabriel_d'Arboussier property:work_location ?z } UNION { resource:Gabriel_d'Arboussier property:work_location ?y } UNION { resource:André_Kolingba property:work_location ?z } UNION { resource:André_Kolingba property:work_location ?y } } . ?z rdf:type ontology:city . ?y rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P725
Q502895 Q1001378
USER
How many cinematic techniques had their voice dubbing done by atmost 30 people ?
(c(Q1001378),P725,c(Q502895))
action count
action atmost
action find_tuple_counts
relation P725
type Q1001378
type Q502895
value 30
[{'concept': 'Q1001378'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?a ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?c ) AS ?v ) WHERE { ?k property:P725 ?c . ?c rdf:type ontology:Q502895 . ?k rdf:type ontology:Q1001378 } GROUP BY ?k } . FILTER ( ?v <= 30 ) }
action count
action atmost
action find_tuple_counts
relation voice actor
type cinematic technique
type common name
value 30
[{'concept': 'cinematic technique'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?a ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?c ) AS ?v ) WHERE { ?k property:voice_actor ?c . ?c rdf:type ontology:common_name . ?k rdf:type ontology:cinematic_technique } GROUP BY ?k } . FILTER ( ?v <= 30 ) }
[]
common name cinematic technique
SYSTEM
43
Q656998 Q6505964 Q120367 Q2388260 Q21079862 Q1093555 Q15270742 Q27229786 Q2329413 Q562140 Q6144664 Q221679 Q392530 Q192212 Q23647031 Q182153 Q15728879 Q2388653 Q246283 Q908816 Q244434 Q3623997 Q4096274 Q18647981 Q655133 Q2615381 Q191803 Q170035 Q2613318 Q171048 Q223217 Q6739642 Q15709928 Q14545073 Q467678 Q15140309 Q656396 Q187266 Q15975680 Q4243413 Q104905 Q329603 Q633053
(c(Q1001378),P725,c(Q502895))
action count
action atmost
action find_tuple_counts
relation P725
type Q1001378
type Q502895
value 30
[ANSWER]
[{'concept': 'Q1001378'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?a ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?c ) AS ?v ) WHERE { ?k property:P725 ?c . ?c rdf:type ontology:Q502895 . ?k rdf:type ontology:Q1001378 } GROUP BY ?k } . FILTER ( ?v <= 30 ) }
Garfield's Pet Force Rudolph the Red-Nosed Reindeer: The Movie Shark Tale The Humpbacked Horse Cars 3 Swan Lake Adventures of Mowgli The Animated Adventures of Tom Sawyer Barbie as the Princess and the Pauper Yobi, the Five Tailed Fox Inside Out Meet the Robinsons Treasure Planet Cars 2 Batman: The Killing Joke Cars My Little Pony: Equestria Girls 2 – Rainbow Rocks Tom Sawyer Frozen The Secret of Kells Lady and the Tramp II: Scamp's Adventure FernGully 2: The Magical Rescue The Bremen Town Musicians Moana Treasure Island Korgoth of Barbaria The Lion King II: Simba's Pride Ratatouille Garfield's Fun Fest Toy Story The Lion King 1½ Making Stars Tríd an Stoirm 1912 film The Little Mermaid II: Return to the Sea Emil & Ida i Lönneberga Mickey's Magical Christmas: Snowed in at the House of Mouse Toy Story 2 Tamako Love Story Ku! Kin-dza-dza WALL•E Laura's Star Surf's Up
43
action count
action atmost
action find_tuple_counts
relation voice actor
type cinematic technique
type common name
value 30
[{'concept': 'cinematic technique'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?a ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?c ) AS ?v ) WHERE { ?k property:voice_actor ?c . ?c rdf:type ontology:common_name . ?k rdf:type ontology:cinematic_technique } GROUP BY ?k } . FILTER ( ?v <= 30 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments are played by around 2242 people ?
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2242
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?e ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?d ) AS ?l ) WHERE { ?d property:P1303 ?m . ?m rdf:type ontology:Q34379 . ?d rdf:type ontology:Q502895 } GROUP BY ?m } . FILTER ( ?l = 2242 ) }
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2242
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?e ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?d ) AS ?l ) WHERE { ?d property:instrument ?m . ?m rdf:type ontology:musical_instrument . ?d rdf:type ontology:common_name } GROUP BY ?m } . FILTER ( ?l = 2242 ) }
[]
musical instrument common name
SYSTEM
5
Q46185 Q8338 Q8371 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2242
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?e ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?d ) AS ?l ) WHERE { ?d property:P1303 ?m . ?m rdf:type ontology:Q34379 . ?d rdf:type ontology:Q502895 } GROUP BY ?m } . FILTER ( ?l = 2242 ) }
bass guitar trumpet cello organ drum kit
5
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2242
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?e ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?d ) AS ?l ) WHERE { ?d property:instrument ?m . ?m rdf:type ontology:musical_instrument . ?d rdf:type ontology:common_name } GROUP BY ?m } . FILTER ( ?l = 2242 ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q60
P291
Q56061 Q2342494 Q11032
USER
Which administrative territories were greater number of collectables and newspapers issued than New York City ?
(c(Q2342494)|c(Q11032),P291,c(Q56061))
action greater
action union
action find_reverse_tuple_counts
relation P291
type Q56061
type Q2342494
action find_reverse_tuple_counts
relation P291
type Q56061
type Q11032
action count
action filter_multi_types
action find_reverse
entity Q60
relation P291
type Q2342494
type Q11032
[[{'concept': 'Q2342494'}, {'concept': 'Q11032'}], 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?g ) ?z WHERE { { ?i property:P291 ?z . ?z rdf:type ontology:Q56061 . ?i rdf:type ontology:Q2342494 } UNION { ?z rdf:type ontology:Q56061 . ?i rdf:type ontology:Q11032 . ?i property:P291 ?z } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?w ) WHERE { ?l property:P291 resource:Q60 . { { ?l rdf:type ontology:Q2342494 } UNION { ?l rdf:type ontology:Q11032 } } } } . FILTER ( ?g > ?w ) }
New York City
action greater
action union
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type newspaper
action count
action filter_multi_types
action find_reverse
entity New York City
relation place of publication
type collectable
type newspaper
[[{'concept': 'collectable'}, {'concept': 'newspaper'}], 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?g ) ?z WHERE { { ?i property:place_of_publication ?z . ?z rdf:type ontology:administrative_territorial_entity . ?i rdf:type ontology:collectable } UNION { ?z rdf:type ontology:administrative_territorial_entity . ?i rdf:type ontology:newspaper . ?i property:place_of_publication ?z } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?w ) WHERE { ?l property:place_of_publication resource:New_York_City . { { ?l rdf:type ontology:collectable } UNION { ?l rdf:type ontology:newspaper } } } } . FILTER ( ?g > ?w ) }
[]
administrative territorial entity collectable newspaper
Q90 Q84
SYSTEM
Paris, London
Q90 Q84
(c(Q2342494)|c(Q11032),P291,c(Q56061))
action greater
action union
action find_reverse_tuple_counts
relation P291
type Q56061
type Q2342494
action find_reverse_tuple_counts
relation P291
type Q56061
type Q11032
action count
action filter_multi_types
action find_reverse
entity Q60
relation P291
type Q2342494
type Q11032
[ANSWERS] were greater number of collectables and newspapers issued than New York City
[[{'concept': 'Q2342494'}, {'concept': 'Q11032'}], 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?g ) ?z WHERE { { ?i property:P291 ?z . ?z rdf:type ontology:Q56061 . ?i rdf:type ontology:Q2342494 } UNION { ?z rdf:type ontology:Q56061 . ?i rdf:type ontology:Q11032 . ?i property:P291 ?z } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?w ) WHERE { ?l property:P291 resource:Q60 . { { ?l rdf:type ontology:Q2342494 } UNION { ?l rdf:type ontology:Q11032 } } } } . FILTER ( ?g > ?w ) }
Paris London
Paris and London were greater number of collectables and newspapers issued than New York City
Paris London
action greater
action union
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type newspaper
action count
action filter_multi_types
action find_reverse
entity New York City
relation place of publication
type collectable
type newspaper
[[{'concept': 'collectable'}, {'concept': 'newspaper'}], 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?g ) ?z WHERE { { ?i property:place_of_publication ?z . ?z rdf:type ontology:administrative_territorial_entity . ?i rdf:type ontology:collectable } UNION { ?z rdf:type ontology:administrative_territorial_entity . ?i rdf:type ontology:newspaper . ?i property:place_of_publication ?z } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?w ) WHERE { ?l property:place_of_publication resource:New_York_City . { { ?l rdf:type ontology:collectable } UNION { ?l rdf:type ontology:newspaper } } } } . FILTER ( ?g > ?w ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q334
P291
Q56061 Q2342494 Q11032
USER
And also tell me about Singapore?
(c(Q2342494)|c(Q11032),P291,c(Q56061))
action greater
action union
action find_reverse_tuple_counts
relation P291
type Q56061
type Q2342494
action find_reverse_tuple_counts
relation P291
type Q56061
type Q11032
action count
action filter_multi_types
action find_reverse
entity Q334
relation P291
type Q2342494
type Q11032
[[{'concept': 'Q2342494'}, {'concept': 'Q11032'}], 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?g ) AS ?i ) WHERE { { ?g property:P291 ?k . ?k rdf:type ontology:Q56061 . ?g rdf:type ontology:Q2342494 } UNION { ?g property:P291 ?k . ?g rdf:type ontology:Q11032 . ?k rdf:type ontology:Q56061 } } GROUP BY ?k } . FILTER ( ?i > ?c ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?c ) WHERE { ?j property:P291 resource:Q334 . { { ?j rdf:type ontology:Q2342494 } UNION { ?j rdf:type ontology:Q11032 } } } } }
Singapore
action greater
action union
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type newspaper
action count
action filter_multi_types
action find_reverse
entity Singapore
relation place of publication
type collectable
type newspaper
[[{'concept': 'collectable'}, {'concept': 'newspaper'}], 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?g ) AS ?i ) WHERE { { ?g property:place_of_publication ?k . ?k rdf:type ontology:administrative_territorial_entity . ?g rdf:type ontology:collectable } UNION { ?g property:place_of_publication ?k . ?g rdf:type ontology:newspaper . ?k rdf:type ontology:administrative_territorial_entity } } GROUP BY ?k } . FILTER ( ?i > ?c ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?c ) WHERE { ?j property:place_of_publication resource:Singapore . { { ?j rdf:type ontology:collectable } UNION { ?j rdf:type ontology:newspaper } } } } }
[]
administrative territorial entity collectable newspaper
Q1085 Q72 Q649
SYSTEM
Prague, Zürich, Moscow
Q807 Q190583 Q27918 Q736775 Q3897 Q3711 Q393 Q80670 Q25286 Q490595 Q3808 Q3150 Q484678 Q151920 Q13375 Q4093 Q2560090 Q23337 Q33959 Q987 Q8692 Q586 Q1289 Q10690 Q25748 Q15688 Q1757 Q41876 Q1754 Q1022 Q749 Q90 Q3992 Q2132 Q81046 Q12892 Q365 Q6157 Q43631 Q8818 Q1895 Q1034159 Q103717 Q28911 Q186237 Q180233 Q14328 Q5083 Q1524 Q234178 Q8678 Q15468 Q490 Q6346 Q495 Q576165 Q5465 Q2141 Q23436 Q1679567 Q2814 Q2280 Q3141 Q72 Q1490 Q239 Q16559 Q16555 Q621 Q8686 Q994 Q3130 Q1297 Q3033 Q170263 Q35381 Q1748 Q87 Q84 Q40269 Q2081145 Q1741 Q191133 Q538915 Q49111 Q71 Q270 Q60 Q286048 Q49241 Q1781 Q16567 Q14318 Q5092 Q134620 Q1492 Q18419 Q2090 Q2807 Q220 Q340 Q342 Q26421 Q28249 Q13666 Q569661 Q2634 Q8356 Q49179 Q1726 Q1724 Q1729 Q8717 Q64 Q207891 Q61 Q62 Q683512 Q18125 Q3889 Q9125 Q1867 Q269 Q126148 Q1352 Q49229 Q33405 Q493794 Q6106 Q2391194 Q10313 Q1295 Q647 Q641 Q727 Q649 Q24826 Q15696 Q203263 Q193180 Q585 Q34370 Q47048 Q192155 Q207639 Q41262 Q6441 Q2066 Q100 Q81137 Q955640 Q281839 Q485172 Q172 Q350 Q13972 Q8826 Q129610 Q179385 Q29303 Q628667 Q127159 Q1085
(c(Q2342494)|c(Q11032),P291,c(Q56061))
action greater
action union
action find_reverse_tuple_counts
relation P291
type Q56061
type Q2342494
action find_reverse_tuple_counts
relation P291
type Q56061
type Q11032
action count
action filter_multi_types
action find_reverse
entity Q334
relation P291
type Q2342494
type Q11032
[ANSWERS]
[[{'concept': 'Q2342494'}, {'concept': 'Q11032'}], 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?g ) AS ?i ) WHERE { { ?g property:P291 ?k . ?k rdf:type ontology:Q56061 . ?g rdf:type ontology:Q2342494 } UNION { ?g property:P291 ?k . ?g rdf:type ontology:Q11032 . ?k rdf:type ontology:Q56061 } } GROUP BY ?k } . FILTER ( ?i > ?c ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?c ) WHERE { ?j property:P291 resource:Q334 . { { ?j rdf:type ontology:Q2342494 } UNION { ?j rdf:type ontology:Q11032 } } } } }
Lausanne Mikkeli Bad Rappenau Toronto Luanda Belgrade Szczecin Mühlacker Uppsala Daytona Beach Yaoundé Jena Berkeley Tiberias Pisa Glasgow Athol Salt Lake City Nice New Delhi Bilbao Bonn Grenoble Cardiff Gävle Ávila Helsinki Reims Stockholm Stuttgart Groningen Paris Liège Victoria Charleroi Antwerp Cologne Seinäjoki Leiden Valencia Petrozavodsk Harstad Rovaniemi Lahti Joensuu Pori Santa Cruz de Tenerife Seattle Athens Bangor Rio de Janeiro Badalona Milan Indianapolis Turin Warsaw Cape Town Halifax Edinburgh Jakobstad Halle (Saale) Minsk Melbourne Zürich Tokyo Brussels Austin Houston Versailles Shanghai Tbilisi Sydney Chicago Göttingen Chester Colombo Copenhagen Alexandria London Porto Alegre Milborne Port Vienna Fátima Mjölby Cambridge Geneva Warsaw New York City New Glasgow, Nova Scotia Lexington Budapest Columbus Vitoria-Gasteiz Baltimore Jyväskylä Barcelona Brooklyn Nuremberg Madrid Rome Montreal Quimper Dordrecht Concord Messina Königstein im Taunus Naples Valladolid Worcester Munich Saarbrücken Erfurt Seville Berlin Kokkola Washington, D.C. San Francisco Savonlinna Manchester Maputo Winterthur Taipei Tashkent Tangier Chennai Durham Little Rock Dubuque Portland Saint-Idesbald Donostia/San Sebastián Dortmund Rennes Venice Amsterdam Moscow Liverpool Zamora Athens Kajaani Oslo Rotterdam Oulu Kotka Chichester Nottingham Montpellier Essen Boston Olomouc Glasgow Englewood Cliffs, New Jersey Ann Arbor Toronto Cambridge Tartu Palma Galway Greenwich Canterbury Spangenberg Bletchley Prague
Prague Zürich Moscow
action greater
action union
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type newspaper
action count
action filter_multi_types
action find_reverse
entity Singapore
relation place of publication
type collectable
type newspaper
[[{'concept': 'collectable'}, {'concept': 'newspaper'}], 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?g ) AS ?i ) WHERE { { ?g property:place_of_publication ?k . ?k rdf:type ontology:administrative_territorial_entity . ?g rdf:type ontology:collectable } UNION { ?g property:place_of_publication ?k . ?g rdf:type ontology:newspaper . ?k rdf:type ontology:administrative_territorial_entity } } GROUP BY ?k } . FILTER ( ?i > ?c ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?c ) WHERE { ?j property:place_of_publication resource:Singapore . { { ?j rdf:type ontology:collectable } UNION { ?j rdf:type ontology:newspaper } } } } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q1163319
P21 P102
Q502895
USER
Which people belong to the political party Sudanese Union – African Democratic Rally and have male as the sex ?
AND((c(Q502895),P102,Q1163319), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q1163319
relation P102
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P102', 'Q1163319'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q502895 . ?s property:P21 resource:Q6581097 . ?s property:P102 resource:Q1163319 }
male Sudanese Union – African Democratic Rally
action filter_type
action intersection
action find_reverse
entity Sudanese Union – African Democratic Rally
relation member of political party
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'member of political party', 'Sudanese Union – African Democratic Rally'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:common_name . ?s property:gender resource:male . ?s property:member_of_political_party resource:Sudanese_Union_–_African_Democratic_Rally }
[]
common name
Q313240
SYSTEM
Modibo Keïta
Q313240
AND((c(Q502895),P102,Q1163319), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q1163319
relation P102
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWER] belong to the political party Sudanese Union – African Democratic Rally and have male as the sex
{'AND': [[{'concept': 'Q502895'}, 'P102', 'Q1163319'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q502895 . ?s property:P21 resource:Q6581097 . ?s property:P102 resource:Q1163319 }
Modibo Keïta
Modibo Keïta belong to the political party Sudanese Union – African Democratic Rally and have male as the sex
Modibo Keïta
action filter_type
action intersection
action find_reverse
entity Sudanese Union – African Democratic Rally
relation member of political party
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'member of political party', 'Sudanese Union – African Democratic Rally'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:common_name . ?s property:gender resource:male . ?s property:member_of_political_party resource:Sudanese_Union_–_African_Democratic_Rally }
[]