Simple Question (Direct)
Simple Question
Q3313469
P19
Q56061
USER
Which administrative territory is the birthplace of Mike Mohamed ?
(Q3313469,P19,c(Q56061))
action filter_type
action find
entity Q3313469
relation P19
type Q56061
['Q3313469', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q56061 . resource:Q3313469 property:P19 ?d }
Mike Mohamed
action filter_type
action find
entity Mike Mohamed
relation place of birth
type administrative territorial entity
['Mike Mohamed', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:administrative_territorial_entity . resource:Mike_Mohamed property:place_of_birth ?d }
[]
administrative territorial entity
Q902878
SYSTEM
Brawley
Q902878
(Q3313469,P19,c(Q56061))
action filter_type
action find
entity Q3313469
relation P19
type Q56061
[ANSWER] is the birthplace of Mike Mohamed
['Q3313469', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q56061 . resource:Q3313469 property:P19 ?d }
Brawley
Brawley is the birthplace of Mike Mohamed
Brawley
action filter_type
action find
entity Mike Mohamed
relation place of birth
type administrative territorial entity
['Mike Mohamed', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:administrative_territorial_entity . resource:Mike_Mohamed property:place_of_birth ?d }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P144
Q502895 Q7725634 Q15850590
USER
Which people are max number of literary works and theatrical genres adapted from ?
(c(Q7725634)|c(Q15850590),P144,c(Q502895))
action argmax
action union
action find_reverse_tuple_counts
relation P144
type Q502895
type Q7725634
action find_reverse_tuple_counts
relation P144
type Q502895
type Q15850590
[[{'concept': 'Q7725634'}, {'concept': 'Q15850590'}], 'P144', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?h ) { SELECT DISTINCT ?j ( COUNT ( ?m ) AS ?r ) WHERE { ?m rdf:type ?e . VALUES ( ?e ) { ( ontology:Q7725634 ) ( ontology:Q15850590 ) } } GROUP BY ?j } } . { SELECT DISTINCT ?w ( COUNT ( ?d ) AS ?a ) WHERE { { ?d property:P144 ?w . ?d rdf:type ontology:Q7725634 . ?w rdf:type ontology:Q502895 } UNION { ?d property:P144 ?w . ?d rdf:type ontology:Q15850590 . ?w rdf:type ontology:Q502895 } } GROUP BY ?w } . FILTER ( ?a = ?h ) }
action argmax
action union
action find_reverse_tuple_counts
relation based on
type common name
type literary work
action find_reverse_tuple_counts
relation based on
type common name
type theatrical genre
[[{'concept': 'literary work'}, {'concept': 'theatrical genre'}], 'based on', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?h ) { SELECT DISTINCT ?j ( COUNT ( ?m ) AS ?r ) WHERE { ?m rdf:type ?e . VALUES ( ?e ) { ( ontology:literary_work ) ( ontology:theatrical_genre ) } } GROUP BY ?j } } . { SELECT DISTINCT ?w ( COUNT ( ?d ) AS ?a ) WHERE { { ?d property:based_on ?w . ?d rdf:type ontology:literary_work . ?w rdf:type ontology:common_name } UNION { ?d property:based_on ?w . ?d rdf:type ontology:theatrical_genre . ?w rdf:type ontology:common_name } } GROUP BY ?w } . FILTER ( ?a = ?h ) }
[]
common name literary work theatrical genre
Q298920 Q276615 Q184935
SYSTEM
Charles M. Schulz, Gabriela Preissová, Mihai Eminescu
Q298920 Q276615 Q184935
(c(Q7725634)|c(Q15850590),P144,c(Q502895))
action argmax
action union
action find_reverse_tuple_counts
relation P144
type Q502895
type Q7725634
action find_reverse_tuple_counts
relation P144
type Q502895
type Q15850590
Max number of literary works and theatrical genres are adapted by [ANSWERS]
[[{'concept': 'Q7725634'}, {'concept': 'Q15850590'}], 'P144', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?h ) { SELECT DISTINCT ?j ( COUNT ( ?m ) AS ?r ) WHERE { ?m rdf:type ?e . VALUES ( ?e ) { ( ontology:Q7725634 ) ( ontology:Q15850590 ) } } GROUP BY ?j } } . { SELECT DISTINCT ?w ( COUNT ( ?d ) AS ?a ) WHERE { { ?d property:P144 ?w . ?d rdf:type ontology:Q7725634 . ?w rdf:type ontology:Q502895 } UNION { ?d property:P144 ?w . ?d rdf:type ontology:Q15850590 . ?w rdf:type ontology:Q502895 } } GROUP BY ?w } . FILTER ( ?a = ?h ) }
Charles M. Schulz Gabriela Preissová Mihai Eminescu
Max number of literary works and theatrical genres are adapted by Charles M. Schulz, Gabriela Preissová and Mihai Eminescu
Charles M. Schulz Gabriela Preissová Mihai Eminescu
action argmax
action union
action find_reverse_tuple_counts
relation based on
type common name
type literary work
action find_reverse_tuple_counts
relation based on
type common name
type theatrical genre
[[{'concept': 'literary work'}, {'concept': 'theatrical genre'}], 'based on', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?h ) { SELECT DISTINCT ?j ( COUNT ( ?m ) AS ?r ) WHERE { ?m rdf:type ?e . VALUES ( ?e ) { ( ontology:literary_work ) ( ontology:theatrical_genre ) } } GROUP BY ?j } } . { SELECT DISTINCT ?w ( COUNT ( ?d ) AS ?a ) WHERE { { ?d property:based_on ?w . ?d rdf:type ontology:literary_work . ?w rdf:type ontology:common_name } UNION { ?d property:based_on ?w . ?d rdf:type ontology:theatrical_genre . ?w rdf:type ontology:common_name } } GROUP BY ?w } . FILTER ( ?a = ?h ) }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q298920 Q276615 Q184935
P106
Q12737077
USER
What are the professions of Charles M. Schulz, Gabriela Preissová and Mihai Eminescu ?
(Q298920,P106,c(Q12737077)) (Q276615,P106,c(Q12737077)) (Q184935,P106,c(Q12737077))
action union
action filter_type
action find
entity Q298920
relation P106
type Q12737077
action filter_type
action find
entity Q276615
relation P106
type Q12737077
action filter_type
action find
entity Q184935
relation P106
type Q12737077
['Q298920', 'P106', {'concept': 'Q12737077'}] ['Q276615', 'P106', {'concept': 'Q12737077'}] ['Q184935', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { { resource:Q276615 property:P106 ?v . ?v rdf:type ontology:Q12737077 } UNION { resource:Q298920 property:P106 ?v . ?v rdf:type ontology:Q12737077 } }
Charles M. Schulz Gabriela Preissová Mihai Eminescu
action union
action filter_type
action find
entity Charles M. Schulz
relation occupation
type occupation
action filter_type
action find
entity Gabriela Preissová
relation occupation
type occupation
action filter_type
action find
entity Mihai Eminescu
relation occupation
type occupation
['Charles M. Schulz', 'occupation', {'concept': 'occupation'}] ['Gabriela Preissová', 'occupation', {'concept': 'occupation'}] ['Mihai Eminescu', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { { resource:Gabriela_Preissová property:occupation ?v . ?v rdf:type ontology:occupation } UNION { resource:Charles_M._Schulz property:occupation ?v . ?v rdf:type ontology:occupation } }
[]
occupation
Q182436 Q715301 Q1930187
SYSTEM
librarian, comics artist, journalist
Q1114448 Q11774891 Q715301 Q483501 Q36180 Q11774202 Q12144794 Q1930187 Q182436 Q49757 Q36180
(Q298920,P106,c(Q12737077)) (Q276615,P106,c(Q12737077)) (Q184935,P106,c(Q12737077))
action union
action filter_type
action find
entity Q298920
relation P106
type Q12737077
action filter_type
action find
entity Q276615
relation P106
type Q12737077
action filter_type
action find
entity Q184935
relation P106
type Q12737077
The professions of Charles M. Schulz , Gabriela Preissová and Mihai Eminescu are the [ANSWERS]
['Q298920', 'P106', {'concept': 'Q12737077'}] ['Q276615', 'P106', {'concept': 'Q12737077'}] ['Q184935', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { { resource:Q276615 property:P106 ?v . ?v rdf:type ontology:Q12737077 } UNION { resource:Q298920 property:P106 ?v . ?v rdf:type ontology:Q12737077 } }
cartoonist ice hockey player comics artist artist writer essayist prosaist journalist librarian poet writer
The professions of Charles M. Schulz , Gabriela Preissová and Mihai Eminescu are the librarian, comics artist and journalist
librarian comics artist journalist
action union
action filter_type
action find
entity Charles M. Schulz
relation occupation
type occupation
action filter_type
action find
entity Gabriela Preissová
relation occupation
type occupation
action filter_type
action find
entity Mihai Eminescu
relation occupation
type occupation
['Charles M. Schulz', 'occupation', {'concept': 'occupation'}] ['Gabriela Preissová', 'occupation', {'concept': 'occupation'}] ['Mihai Eminescu', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { { resource:Gabriela_Preissová property:occupation ?v . ?v rdf:type ontology:occupation } UNION { resource:Charles_M._Schulz property:occupation ?v . ?v rdf:type ontology:occupation } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q298920
P20
Q56061
USER
Where did Charles M. Schulz expire ?
(Q298920,P20,c(Q56061))
action filter_type
action find
entity Q298920
relation P20
type Q56061
['Q298920', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { resource:Q298920 property:P20 ?k . ?k rdf:type ontology:Q56061 }
Charles M. Schulz
action filter_type
action find
entity Charles M. Schulz
relation place of death
type administrative territorial entity
['Charles M. Schulz', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Charles_M._Schulz property:place_of_death ?k . ?k rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q212991
SYSTEM
Santa Rosa
Q212991
(Q298920,P20,c(Q56061))
action filter_type
action find
entity Q298920
relation P20
type Q56061
Charles M. Schulz expired in [ANSWER]
['Q298920', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { resource:Q298920 property:P20 ?k . ?k rdf:type ontology:Q56061 }
Santa Rosa
Charles M. Schulz expired in Santa Rosa
Santa Rosa
action filter_type
action find
entity Charles M. Schulz
relation place of death
type administrative territorial entity
['Charles M. Schulz', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Charles_M._Schulz property:place_of_death ?k . ?k rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q62188 Q184935
P138
Q17444909
USER
Which astronomical object types come from Mihai Eminescu or Johann Heinrich Voss ?
OR((c(Q17444909),P138,Q184935), (c(Q17444909),P138,Q62188))
action filter_type
action union
action find_reverse
entity Q184935
relation P138
action find_reverse
entity Q62188
relation P138
type Q17444909
{'OR': [[{'concept': 'Q17444909'}, 'P138', 'Q184935'], [{'concept': 'Q17444909'}, 'P138', 'Q62188']]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q17444909 . { { ?i property:P138 resource:Q184935 } UNION { ?i property:P138 resource:Q62188 } } }
Johann Heinrich Voss Mihai Eminescu
action filter_type
action union
action find_reverse
entity Mihai Eminescu
relation named after
action find_reverse
entity Johann Heinrich Voss
relation named after
type astronomical object type
{'OR': [[{'concept': 'astronomical object type'}, 'named after', 'Mihai Eminescu'], [{'concept': 'astronomical object type'}, 'named after', 'Johann Heinrich Voss']]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:astronomical_object_type . { { ?i property:named_after resource:Mihai_Eminescu } UNION { ?i property:named_after resource:Johann_Heinrich_Voss } } }
[]
astronomical object type
Q148766 Q1080589
SYSTEM
23473 Voss, 9495 Eminescu
Q148766 Q1080589
OR((c(Q17444909),P138,Q184935), (c(Q17444909),P138,Q62188))
action filter_type
action union
action find_reverse
entity Q184935
relation P138
action find_reverse
entity Q62188
relation P138
type Q17444909
[ANSWERS] come from Mihai Eminescu or Johann Heinrich Voss
{'OR': [[{'concept': 'Q17444909'}, 'P138', 'Q184935'], [{'concept': 'Q17444909'}, 'P138', 'Q62188']]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q17444909 . { { ?i property:P138 resource:Q184935 } UNION { ?i property:P138 resource:Q62188 } } }
23473 Voss 9495 Eminescu
23473 Voss and 9495 Eminescu come from Mihai Eminescu or Johann Heinrich Voss
23473 Voss 9495 Eminescu
action filter_type
action union
action find_reverse
entity Mihai Eminescu
relation named after
action find_reverse
entity Johann Heinrich Voss
relation named after
type astronomical object type
{'OR': [[{'concept': 'astronomical object type'}, 'named after', 'Mihai Eminescu'], [{'concept': 'astronomical object type'}, 'named after', 'Johann Heinrich Voss']]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:astronomical_object_type . { { ?i property:named_after resource:Mihai_Eminescu } UNION { ?i property:named_after resource:Johann_Heinrich_Voss } } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q19520708 Q276615
P19 P20
Q56061
USER
Which administrative territories did Gabriela Preissová expire or are the places of birth of James Crumley ?
OR((Q276615,P20,c(Q56061)), (Q19520708,P19,c(Q56061)))
action filter_type
action union
action find
entity Q276615
relation P20
action find
entity Q19520708
relation P19
type Q56061
{'OR': [['Q276615', 'P20', {'concept': 'Q56061'}], ['Q19520708', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q56061 . { { resource:Q276615 property:P20 ?i } UNION { resource:Q19520708 property:P19 ?i } } }
James Crumley Gabriela Preissová
action filter_type
action union
action find
entity Gabriela Preissová
relation place of death
action find
entity James Crumley
relation place of birth
type administrative territorial entity
{'OR': [['Gabriela Preissová', 'place of death', {'concept': 'administrative territorial entity'}], ['James Crumley', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:administrative_territorial_entity . { { resource:Gabriela_Preissová property:place_of_death ?i } UNION { resource:James_Crumley property:place_of_birth ?i } } }
[]
administrative territorial entity
Q123709 Q1085
SYSTEM
Dundee, Prague
Q123709 Q1085
OR((Q276615,P20,c(Q56061)), (Q19520708,P19,c(Q56061)))
action filter_type
action union
action find
entity Q276615
relation P20
action find
entity Q19520708
relation P19
type Q56061
Gabriela Preissová expired or are the places of birth of James Crumley in [ANSWERS]
{'OR': [['Q276615', 'P20', {'concept': 'Q56061'}], ['Q19520708', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q56061 . { { resource:Q276615 property:P20 ?i } UNION { resource:Q19520708 property:P19 ?i } } }
Dundee Prague
Gabriela Preissová expired or are the places of birth of James Crumley in Dundee and Prague
Dundee Prague
action filter_type
action union
action find
entity Gabriela Preissová
relation place of death
action find
entity James Crumley
relation place of birth
type administrative territorial entity
{'OR': [['Gabriela Preissová', 'place of death', {'concept': 'administrative territorial entity'}], ['James Crumley', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:administrative_territorial_entity . { { resource:Gabriela_Preissová property:place_of_death ?i } UNION { resource:James_Crumley property:place_of_birth ?i } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q212991
P190
Q15617994 Q13220204
USER
How many administrative territories or administrative country subdivisions are the sister cities of Santa Rosa ?
(Q212991,P190,c(Q15617994)) (Q212991,P190,c(Q13220204))
action count
action union
action filter_type
action find
entity Q212991
relation P190
type Q15617994
action filter_type
action find
entity Q212991
relation P190
type Q13220204
['Q212991', 'P190', {'concept': 'Q15617994'}] ['Q212991', 'P190', {'concept': 'Q13220204'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { { resource:Q212991 property:P190 ?v . ?v rdf:type ontology:Q15617994 } UNION { resource:Q212991 property:P190 ?v . ?v rdf:type ontology:Q13220204 } }
Santa Rosa
action count
action union
action filter_type
action find
entity Santa Rosa
relation sister city
type designation for an administrative territorial entity
action filter_type
action find
entity Santa Rosa
relation sister city
type second-level administrative country subdivision
['Santa Rosa', 'sister city', {'concept': 'designation for an administrative territorial entity'}] ['Santa Rosa', 'sister city', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { { resource:Santa_Rosa property:sister_city ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Santa_Rosa property:sister_city ?v . ?v rdf:type ontology:second-level_administrative_country_subdivision } }
[]
designation for an administrative territorial entity second-level administrative country subdivision
SYSTEM
2
Q157055 Q42142
(Q212991,P190,c(Q15617994)) (Q212991,P190,c(Q13220204))
action count
action union
action filter_type
action find
entity Q212991
relation P190
type Q15617994
action filter_type
action find
entity Q212991
relation P190
type Q13220204
[ANSWER]
['Q212991', 'P190', {'concept': 'Q15617994'}] ['Q212991', 'P190', {'concept': 'Q13220204'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { { resource:Q212991 property:P190 ?v . ?v rdf:type ontology:Q15617994 } UNION { resource:Q212991 property:P190 ?v . ?v rdf:type ontology:Q13220204 } }
Cherkasy Jeju City
2
action count
action union
action filter_type
action find
entity Santa Rosa
relation sister city
type designation for an administrative territorial entity
action filter_type
action find
entity Santa Rosa
relation sister city
type second-level administrative country subdivision
['Santa Rosa', 'sister city', {'concept': 'designation for an administrative territorial entity'}] ['Santa Rosa', 'sister city', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { { resource:Santa_Rosa property:sister_city ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Santa_Rosa property:sister_city ?v . ?v rdf:type ontology:second-level_administrative_country_subdivision } }
[]