Simple Question (Direct)
Simple Question
Q11256219
P106
Q12737077
USER
Which occupations are the professions of Karin Amamiya ?
(Q11256219,P106,c(Q12737077))
action filter_type
action find
entity Q11256219
relation P106
type Q12737077
['Q11256219', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q11256219 property:P106 ?f . ?f rdf:type ontology:Q12737077 }
Karin Amamiya
action filter_type
action find
entity Karin Amamiya
relation occupation
type occupation
['Karin Amamiya', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Karin_Amamiya property:occupation ?f . ?f rdf:type ontology:occupation }
[]
occupation
Q36180 Q6625963
SYSTEM
writer, novelist
Q36180 Q6625963
(Q11256219,P106,c(Q12737077))
action filter_type
action find
entity Q11256219
relation P106
type Q12737077
And [ANSWERS] are the professions of Karin Amamiya
['Q11256219', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q11256219 property:P106 ?f . ?f rdf:type ontology:Q12737077 }
writer novelist
And writer and novelist are the professions of Karin Amamiya
writer novelist
action filter_type
action find
entity Karin Amamiya
relation occupation
type occupation
['Karin Amamiya', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Karin_Amamiya property:occupation ?f . ?f rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q11256219
P21
Q290
USER
Which sex does Karin Amamiya have ?
(Q11256219,P21,c(Q290))
action filter_type
action find
entity Q11256219
relation P21
type Q290
['Q11256219', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?i WHERE { resource:Q11256219 property:P21 ?i . ?i rdf:type ontology:Q290 }
Karin Amamiya
action filter_type
action find
entity Karin Amamiya
relation gender
type sex
['Karin Amamiya', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?i WHERE { resource:Karin_Amamiya property:gender ?i . ?i rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q11256219,P21,c(Q290))
action filter_type
action find
entity Q11256219
relation P21
type Q290
Karin Amamiya has a [ANSWER]
['Q11256219', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?i WHERE { resource:Q11256219 property:P21 ?i . ?i rdf:type ontology:Q290 }
female
Karin Amamiya has a female
female
action filter_type
action find
entity Karin Amamiya
relation gender
type sex
['Karin Amamiya', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?i WHERE { resource:Karin_Amamiya property:gender ?i . ?i rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q3133179 Q11256219
P27 P20
Q15617994
USER
Which administrative territories are Karin Amamiya an inhabitant of or did Henry de Bournazel die ?
OR((Q11256219,P27,c(Q15617994)), (Q3133179,P20,c(Q15617994)))
action filter_type
action union
action find
entity Q11256219
relation P27
action find
entity Q3133179
relation P20
type Q15617994
{'OR': [['Q11256219', 'P27', {'concept': 'Q15617994'}], ['Q3133179', 'P20', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q3133179 property:P20 ?w } UNION { resource:Q11256219 property:P27 ?w } } . ?w rdf:type ontology:Q15617994 }
Henry de Bournazel Karin Amamiya
action filter_type
action union
action find
entity Karin Amamiya
relation country of citizenship
action find
entity Henry de Bournazel
relation place of death
type designation for an administrative territorial entity
{'OR': [['Karin Amamiya', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Henry de Bournazel', 'place of death', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Henry_de_Bournazel property:place_of_death ?w } UNION { resource:Karin_Amamiya property:country_of_citizenship ?w } } . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q17 Q1028
SYSTEM
Japan, Morocco
Q17 Q1028
OR((Q11256219,P27,c(Q15617994)), (Q3133179,P20,c(Q15617994)))
action filter_type
action union
action find
entity Q11256219
relation P27
action find
entity Q3133179
relation P20
type Q15617994
[ANSWERS]
{'OR': [['Q11256219', 'P27', {'concept': 'Q15617994'}], ['Q3133179', 'P20', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q3133179 property:P20 ?w } UNION { resource:Q11256219 property:P27 ?w } } . ?w rdf:type ontology:Q15617994 }
Japan Morocco
Which administrative territories are Karin Amamiya an inhabitant of or did Henry de Bournazel die
Japan Morocco
action filter_type
action union
action find
entity Karin Amamiya
relation country of citizenship
action find
entity Henry de Bournazel
relation place of death
type designation for an administrative territorial entity
{'OR': [['Karin Amamiya', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Henry de Bournazel', 'place of death', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Henry_de_Bournazel property:place_of_death ?w } UNION { resource:Karin_Amamiya property:country_of_citizenship ?w } } . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q27
P530
Q15617994 Q15617994
USER
How many administrative territories have tactful political relations with greater number of administrative territories than Ireland ?
(c(Q15617994),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q27
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?x ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?u ) AS ?b ) WHERE { ?k property:P530 ?u . ?u rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q15617994 } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { resource:Q27 property:P530 ?d . ?d rdf:type ontology:Q15617994 } } . FILTER ( ?b > ?e ) }
Ireland
action count
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Ireland
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?x ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?u ) AS ?b ) WHERE { ?k property:diplomatic_relation ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { resource:Ireland property:diplomatic_relation ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?b > ?e ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
25
Q801 Q805 Q668 Q142 Q145 Q148 Q711 Q403 Q159 Q43 Q155 Q884 Q30 Q929 Q38 Q230 Q184 Q225 Q347 Q17 Q114 Q212 Q858 Q1011 Q953
(c(Q15617994),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q27
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?x ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?u ) AS ?b ) WHERE { ?k property:P530 ?u . ?u rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q15617994 } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { resource:Q27 property:P530 ?d . ?d rdf:type ontology:Q15617994 } } . FILTER ( ?b > ?e ) }
Israel Yemen India France United Kingdom People's Republic of China Mongolia Serbia Russia Turkey Brazil South Korea United States of America Central African Republic Italy Georgia Belarus Bosnia and Herzegovina Liechtenstein Japan Kenya Ukraine Syria Cape Verde Zambia
25
action count
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Ireland
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?x ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?u ) AS ?b ) WHERE { ?k property:diplomatic_relation ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { resource:Ireland property:diplomatic_relation ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?b > ?e ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q4921936 Q6625963
P136 P425
Q1792379
USER
What have novelist as the associated field of occupation and can be considered as genre of Black Sun ?
AND((Q6625963,P425,c(Q1792379)), (Q4921936,P136,c(Q1792379)))
action filter_type
action intersection
action find
entity Q6625963
relation P425
action find
entity Q4921936
relation P136
type Q1792379
{'AND': [['Q6625963', 'P425', {'concept': 'Q1792379'}], ['Q4921936', 'P136', {'concept': 'Q1792379'}]]}
SELECT DISTINCT ?l WHERE { resource:Q6625963 property:P425 ?l . resource:Q4921936 property:P136 ?l . ?l rdf:type ontology:Q1792379 }
Black Sun novelist
action filter_type
action intersection
action find
entity novelist
relation field of this occupation
action find
entity Black Sun
relation genre
type art genre
{'AND': [['novelist', 'field of this occupation', {'concept': 'art genre'}], ['Black Sun', 'genre', {'concept': 'art genre'}]]}
SELECT DISTINCT ?l WHERE { resource:novelist property:field_of_this_occupation ?l . resource:Black_Sun property:genre ?l . ?l rdf:type ontology:art_genre }
[]
art genre
Q8261
SYSTEM
novel
Q8261
AND((Q6625963,P425,c(Q1792379)), (Q4921936,P136,c(Q1792379)))
action filter_type
action intersection
action find
entity Q6625963
relation P425
action find
entity Q4921936
relation P136
type Q1792379
[ANSWER] have [ANSWER]ist as the associated field of occupation and can be considered as genre of Black Sun
{'AND': [['Q6625963', 'P425', {'concept': 'Q1792379'}], ['Q4921936', 'P136', {'concept': 'Q1792379'}]]}
SELECT DISTINCT ?l WHERE { resource:Q6625963 property:P425 ?l . resource:Q4921936 property:P136 ?l . ?l rdf:type ontology:Q1792379 }
novel
Novel have novelist as the associated field of occupation and can be considered as genre of Black Sun
novel
action filter_type
action intersection
action find
entity novelist
relation field of this occupation
action find
entity Black Sun
relation genre
type art genre
{'AND': [['novelist', 'field of this occupation', {'concept': 'art genre'}], ['Black Sun', 'genre', {'concept': 'art genre'}]]}
SELECT DISTINCT ?l WHERE { resource:novelist property:field_of_this_occupation ?l . resource:Black_Sun property:genre ?l . ?l rdf:type ontology:art_genre }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q17
P740
Q215380 Q641066
USER
How many bands or girl groups were formed at Japan ?
(c(Q215380),P740,Q17) (c(Q641066),P740,Q17)
action count
action union
action filter_type
action find_reverse
entity Q17
relation P740
type Q215380
action filter_type
action find_reverse
entity Q17
relation P740
type Q641066
[{'concept': 'Q215380'}, 'P740', 'Q17'] [{'concept': 'Q641066'}, 'P740', 'Q17']
SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { ?d rdf:type ?b . VALUES ( ?b ) { ( ontology:Q215380 ) ( ontology:Q641066 ) } }
Japan
action count
action union
action filter_type
action find_reverse
entity Japan
relation location of formation
type band
action filter_type
action find_reverse
entity Japan
relation location of formation
type girl group
[{'concept': 'band'}, 'location of formation', 'Japan'] [{'concept': 'girl group'}, 'location of formation', 'Japan']
SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { ?d rdf:type ?b . VALUES ( ?b ) { ( ontology:band ) ( ontology:girl_group ) } }
[]
band girl group
SYSTEM
6
Q4386964 Q873345 Q2916943 Q11327583 Q17239250 Q17216358
(c(Q215380),P740,Q17) (c(Q641066),P740,Q17)
action count
action union
action filter_type
action find_reverse
entity Q17
relation P740
type Q215380
action filter_type
action find_reverse
entity Q17
relation P740
type Q641066
[ANSWER]
[{'concept': 'Q215380'}, 'P740', 'Q17'] [{'concept': 'Q641066'}, 'P740', 'Q17']
SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { ?d rdf:type ?b . VALUES ( ?b ) { ( ontology:Q215380 ) ( ontology:Q641066 ) } }
Charlotte Ra:IN Okamoto's Bakusute Sotokanda Icchome Especia Party Rockets GT
6
action count
action union
action filter_type
action find_reverse
entity Japan
relation location of formation
type band
action filter_type
action find_reverse
entity Japan
relation location of formation
type girl group
[{'concept': 'band'}, 'location of formation', 'Japan'] [{'concept': 'girl group'}, 'location of formation', 'Japan']
SELECT DISTINCT ( COUNT ( ?d ) AS ?j ) WHERE { ?d rdf:type ?b . VALUES ( ?b ) { ( ontology:band ) ( ontology:girl_group ) } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q2284062 Q11256219
P27 P17
Q15617994
USER
Which administrative territories do Karin Amamiya belong to or are Miliči situated in ?
OR((Q11256219,P27,c(Q15617994)), (Q2284062,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q11256219
relation P27
action find
entity Q2284062
relation P17
type Q15617994
{'OR': [['Q11256219', 'P27', {'concept': 'Q15617994'}], ['Q2284062', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q11256219 property:P27 ?c } UNION { resource:Q2284062 property:P17 ?c } } . ?c rdf:type ontology:Q15617994 }
Miliči Karin Amamiya
action filter_type
action union
action find
entity Karin Amamiya
relation country of citizenship
action find
entity Miliči
relation country
type designation for an administrative territorial entity
{'OR': [['Karin Amamiya', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Miliči', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Karin_Amamiya property:country_of_citizenship ?c } UNION { resource:Miliči property:country ?c } } . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q17 Q215
SYSTEM
Japan, Slovenia
Q17 Q215
OR((Q11256219,P27,c(Q15617994)), (Q2284062,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q11256219
relation P27
action find
entity Q2284062
relation P17
type Q15617994
Karin Amamiya belong to [ANSWERS]
{'OR': [['Q11256219', 'P27', {'concept': 'Q15617994'}], ['Q2284062', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q11256219 property:P27 ?c } UNION { resource:Q2284062 property:P17 ?c } } . ?c rdf:type ontology:Q15617994 }
Japan Slovenia
Karin Amamiya belong to Japan and Slovenia
Japan Slovenia
action filter_type
action union
action find
entity Karin Amamiya
relation country of citizenship
action find
entity Miliči
relation country
type designation for an administrative territorial entity
{'OR': [['Karin Amamiya', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Miliči', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Karin_Amamiya property:country_of_citizenship ?c } UNION { resource:Miliči property:country ?c } } . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]