Simple Question (Direct)
Simple Question
Q1739044
P27
Q15617994
USER
Which administrative territory is the country of citizenship of Kenta Wakabayashi ?
(Q1739044,P27,c(Q15617994))
action filter_type
action find
entity Q1739044
relation P27
type Q15617994
['Q1739044', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q1739044 property:P27 ?c . ?c rdf:type ontology:Q15617994 }
Kenta Wakabayashi
action filter_type
action find
entity Kenta Wakabayashi
relation country of citizenship
type designation for an administrative territorial entity
['Kenta Wakabayashi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Kenta_Wakabayashi property:country_of_citizenship ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q17
SYSTEM
Japan
Q17
(Q1739044,P27,c(Q15617994))
action filter_type
action find
entity Q1739044
relation P27
type Q15617994
To [ANSWER] is the country of citizenship of Kenta Wakabayashi
['Q1739044', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q1739044 property:P27 ?c . ?c rdf:type ontology:Q15617994 }
Japan
To Japan is the country of citizenship of Kenta Wakabayashi
Japan
action filter_type
action find
entity Kenta Wakabayashi
relation country of citizenship
type designation for an administrative territorial entity
['Kenta Wakabayashi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Kenta_Wakabayashi property:country_of_citizenship ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1739044
P734
Q82799
USER
Who has the surname that person ?
(Q17,P734,c(Q82799))
action filter_type
action find
entity Q1739044
relation P734
type Q82799
['Q17', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q82799 . resource:Q1739044 property:P734 ?w }
Kenta Wakabayashi
action filter_type
action find
entity Kenta Wakabayashi
relation family name
type name
['Japan', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:name . resource:Kenta_Wakabayashi property:family_name ?w }
[]
name
Q21451052
SYSTEM
Wakabayashi
Q21451052
(Q17,P734,c(Q82799))
action filter_type
action find
entity Q1739044
relation P734
type Q82799
[ANSWER] has the surname that person
['Q17', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q82799 . resource:Q1739044 property:P734 ?w }
Wakabayashi
Wakabayashi has the surname that person
Wakabayashi
action filter_type
action find
entity Kenta Wakabayashi
relation family name
type name
['Japan', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:name . resource:Kenta_Wakabayashi property:family_name ?w }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q1860
P407
Q34770 Q82799
USER
How many languages are less number of names composed in than English ?
(c(Q82799),P407,c(Q34770))
action count
action less
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
action count
action filter_type
action find_reverse
entity Q1860
relation P407
type Q82799
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?p ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?h ) AS ?b ) WHERE { ?h property:P407 ?l . ?l rdf:type ontology:Q34770 . ?h rdf:type ontology:Q82799 } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?j ) WHERE { ?v property:P407 resource:Q1860 . ?v rdf:type ontology:Q82799 } } . FILTER ( ?b < ?j ) }
English
action count
action less
action find_reverse_tuple_counts
relation language of work or name
type language
type name
action count
action filter_type
action find_reverse
entity English
relation language of work or name
type name
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?p ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?h ) AS ?b ) WHERE { ?h property:language_of_work_or_name ?l . ?l rdf:type ontology:language . ?h rdf:type ontology:name } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?j ) WHERE { ?v property:language_of_work_or_name resource:English . ?v rdf:type ontology:name } } . FILTER ( ?b < ?j ) }
[]
language name
SYSTEM
28
Q132659 Q18130932 Q13414913 Q21161942 Q35499 Q37015 Q8785 Q35726 Q34909 Q27403 Q1420587 Q36206 Q1321 Q33976 Q33879 Q10498031 Q397 Q9056 Q8752 Q37041 Q652 Q35505 Q25167 Q25164 Q56982 Q35308 Q36790 Q447117
(c(Q82799),P407,c(Q34770))
action count
action less
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
action count
action filter_type
action find_reverse
entity Q1860
relation P407
type Q82799
[ANSWER]
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?p ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?h ) AS ?b ) WHERE { ?h property:P407 ?l . ?l rdf:type ontology:Q34770 . ?h rdf:type ontology:Q82799 } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?j ) WHERE { ?v property:P407 resource:Q1860 . ?v rdf:type ontology:Q82799 } } . FILTER ( ?b < ?j ) }
Egyptian hieroglyphs Traditional Chinese Simplified Chinese Serbian written in Cyrillic Old Church Slavonic Riksmål Armenian Etruscan Old Icelandic Galatian Høgnorsk Lak Spanish Sardinian language Pangasinan language Old East Norse Latin Czech Basque classical Chinese Italian Old Norse language Bokmål Nynorsk Judaeo-Portuguese Old Irish Sumerian Old Egyptian
28
action count
action less
action find_reverse_tuple_counts
relation language of work or name
type language
type name
action count
action filter_type
action find_reverse
entity English
relation language of work or name
type name
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?p ) WHERE { { SELECT DISTINCT ?l ( COUNT ( ?h ) AS ?b ) WHERE { ?h property:language_of_work_or_name ?l . ?l rdf:type ontology:language . ?h rdf:type ontology:name } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?j ) WHERE { ?v property:language_of_work_or_name resource:English . ?v rdf:type ontology:name } } . FILTER ( ?b < ?j ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q1321
P407
Q34770 Q82799
USER
And how about Spanish?
(c(Q82799),P407,c(Q34770))
action count
action less
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
action count
action filter_type
action find_reverse
entity Q1321
relation P407
type Q82799
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?s ) AS ?n ) WHERE { ?s property:P407 ?b . ?b rdf:type ontology:Q34770 . ?s rdf:type ontology:Q82799 } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?l ) WHERE { ?d property:P407 resource:Q1321 . ?d rdf:type ontology:Q82799 } } . FILTER ( ?n < ?l ) }
Spanish
action count
action less
action find_reverse_tuple_counts
relation language of work or name
type language
type name
action count
action filter_type
action find_reverse
entity Spanish
relation language of work or name
type name
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?s ) AS ?n ) WHERE { ?s property:language_of_work_or_name ?b . ?b rdf:type ontology:language . ?s rdf:type ontology:name } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?l ) WHERE { ?d property:language_of_work_or_name resource:Spanish . ?d rdf:type ontology:name } } . FILTER ( ?n < ?l ) }
[]
language name
SYSTEM
27
Q132659 Q18130932 Q13414913 Q21161942 Q35499 Q37015 Q8785 Q35726 Q34909 Q27403 Q1420587 Q36206 Q33976 Q33879 Q10498031 Q397 Q9056 Q8752 Q37041 Q652 Q35505 Q25167 Q25164 Q56982 Q35308 Q36790 Q447117
(c(Q82799),P407,c(Q34770))
action count
action less
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
action count
action filter_type
action find_reverse
entity Q1321
relation P407
type Q82799
[ANSWER]
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?s ) AS ?n ) WHERE { ?s property:P407 ?b . ?b rdf:type ontology:Q34770 . ?s rdf:type ontology:Q82799 } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?l ) WHERE { ?d property:P407 resource:Q1321 . ?d rdf:type ontology:Q82799 } } . FILTER ( ?n < ?l ) }
Egyptian hieroglyphs Traditional Chinese Simplified Chinese Serbian written in Cyrillic Old Church Slavonic Riksmål Armenian Etruscan Old Icelandic Galatian Høgnorsk Lak Sardinian language Pangasinan language Old East Norse Latin Czech Basque classical Chinese Italian Old Norse language Bokmål Nynorsk Judaeo-Portuguese Old Irish Sumerian Old Egyptian
27
action count
action less
action find_reverse_tuple_counts
relation language of work or name
type language
type name
action count
action filter_type
action find_reverse
entity Spanish
relation language of work or name
type name
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?f ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?s ) AS ?n ) WHERE { ?s property:language_of_work_or_name ?b . ?b rdf:type ontology:language . ?s rdf:type ontology:name } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?d ) AS ?l ) WHERE { ?d property:language_of_work_or_name resource:Spanish . ?d rdf:type ontology:name } } . FILTER ( ?n < ?l ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q734629 Q1860
P361 P136
Q5962346
USER
Which classification schemes are English a portion of or can be considered as genre of Luther ?
OR((Q1860,P361,c(Q5962346)), (Q734629,P136,c(Q5962346)))
action filter_type
action union
action find
entity Q1860
relation P361
action find
entity Q734629
relation P136
type Q5962346
{'OR': [['Q1860', 'P361', {'concept': 'Q5962346'}], ['Q734629', 'P136', {'concept': 'Q5962346'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q5962346 . { { resource:Q1860 property:P361 ?t } UNION { resource:Q734629 property:P136 ?t } } }
Luther English
action filter_type
action union
action find
entity English
relation part of
action find
entity Luther
relation genre
type classification scheme
{'OR': [['English', 'part of', {'concept': 'classification scheme'}], ['Luther', 'genre', {'concept': 'classification scheme'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:classification_scheme . { { resource:English property:part_of ?t } UNION { resource:Luther property:genre ?t } } }
[]
classification scheme
Q1346342 Q1366112 Q5329170
SYSTEM
Anglic languages, television drama, Anglo-Frisian languages
Q1346342 Q1366112 Q5329170
OR((Q1860,P361,c(Q5962346)), (Q734629,P136,c(Q5962346)))
action filter_type
action union
action find
entity Q1860
relation P361
action find
entity Q734629
relation P136
type Q5962346
[ANSWERS] are English a portion of or can be considered as genre of Luther
{'OR': [['Q1860', 'P361', {'concept': 'Q5962346'}], ['Q734629', 'P136', {'concept': 'Q5962346'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q5962346 . { { resource:Q1860 property:P361 ?t } UNION { resource:Q734629 property:P136 ?t } } }
Anglic languages television drama Anglo-Frisian languages
Anglic languages, television drama and Anglo-Frisian languages are English a portion of or can be considered as genre of Luther
Anglic languages television drama Anglo-Frisian languages
action filter_type
action union
action find
entity English
relation part of
action find
entity Luther
relation genre
type classification scheme
{'OR': [['English', 'part of', {'concept': 'classification scheme'}], ['Luther', 'genre', {'concept': 'classification scheme'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:classification_scheme . { { resource:English property:part_of ?t } UNION { resource:Luther property:genre ?t } } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P805
Q5962346 Q5962346
USER
Which classification schemes are max number of classification schemes a subject of ?
(c(Q5962346),P805,Q2654422)
action argmax
action find_reverse_tuple_counts
relation P805
type Q5962346
type Q5962346
[{'concept': 'Q5962346'}, 'P805', 'Q2654422']
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?a ) { SELECT DISTINCT ?q ( COUNT ( ?i ) AS ?x ) WHERE { ?i property:P805 ?q . ?q rdf:type ontology:Q5962346 . ?i rdf:type ontology:Q5962346 } GROUP BY ?q } } . { SELECT DISTINCT ?r ( COUNT ( ?p ) AS ?z ) WHERE { ?p property:P805 ?r . ?r rdf:type ontology:Q5962346 . ?p rdf:type ontology:Q5962346 } GROUP BY ?r } . FILTER ( ?z = ?a ) }
action argmax
action find_reverse_tuple_counts
relation subject of
type classification scheme
type classification scheme
[{'concept': 'classification scheme'}, 'subject of', 'sector of archives']
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?a ) { SELECT DISTINCT ?q ( COUNT ( ?i ) AS ?x ) WHERE { ?i property:subject_of ?q . ?q rdf:type ontology:classification_scheme . ?i rdf:type ontology:classification_scheme } GROUP BY ?q } } . { SELECT DISTINCT ?r ( COUNT ( ?p ) AS ?z ) WHERE { ?p property:subject_of ?r . ?r rdf:type ontology:classification_scheme . ?p rdf:type ontology:classification_scheme } GROUP BY ?r } . FILTER ( ?z = ?a ) }
[]
classification scheme classification scheme
Q2654422
SYSTEM
sector of archives
Q2654422
(c(Q5962346),P805,Q2654422)
action argmax
action find_reverse_tuple_counts
relation P805
type Q5962346
type Q5962346
The [ANSWER] is max number of classification schemes a subject of
[{'concept': 'Q5962346'}, 'P805', 'Q2654422']
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?a ) { SELECT DISTINCT ?q ( COUNT ( ?i ) AS ?x ) WHERE { ?i property:P805 ?q . ?q rdf:type ontology:Q5962346 . ?i rdf:type ontology:Q5962346 } GROUP BY ?q } } . { SELECT DISTINCT ?r ( COUNT ( ?p ) AS ?z ) WHERE { ?p property:P805 ?r . ?r rdf:type ontology:Q5962346 . ?p rdf:type ontology:Q5962346 } GROUP BY ?r } . FILTER ( ?z = ?a ) }
sector of archives
The sector of archives is max number of classification schemes a subject of
sector of archives
action argmax
action find_reverse_tuple_counts
relation subject of
type classification scheme
type classification scheme
[{'concept': 'classification scheme'}, 'subject of', 'sector of archives']
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?a ) { SELECT DISTINCT ?q ( COUNT ( ?i ) AS ?x ) WHERE { ?i property:subject_of ?q . ?q rdf:type ontology:classification_scheme . ?i rdf:type ontology:classification_scheme } GROUP BY ?q } } . { SELECT DISTINCT ?r ( COUNT ( ?p ) AS ?z ) WHERE { ?p property:subject_of ?r . ?r rdf:type ontology:classification_scheme . ?p rdf:type ontology:classification_scheme } GROUP BY ?r } . FILTER ( ?z = ?a ) }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q2654422 Q380313
P805
Q5962346
USER
Is archival science the subject of that one ?
(Q380313,P805,Q2654422)
action is_in
entity Q2654422
action find
entity Q380313
relation P805
['Q380313', 'P805', 'Q2654422']
ASK WHERE { resource:Q380313 property:P805 resource:Q2654422 }
sector of archives archival science
action is_in
entity sector of archives
action find
entity archival science
relation subject of
['archival science', 'subject of', 'sector of archives']
ASK WHERE { resource:archival_science property:subject_of resource:sector_of_archives }
[]
classification scheme
SYSTEM
YES
(Q380313,P805,Q2654422)
action is_in
entity Q2654422
action find
entity Q380313
relation P805
[ANSWER]
['Q380313', 'P805', 'Q2654422']
ASK WHERE { resource:Q380313 property:P805 resource:Q2654422 }
Yes
action is_in
entity sector of archives
action find
entity archival science
relation subject of
['archival science', 'subject of', 'sector of archives']
ASK WHERE { resource:archival_science property:subject_of resource:sector_of_archives }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P805
Q5962346 Q5962346
USER
Which classification schemes have min number of classification schemes as their subject ?
(c(Q5962346),P805,Q2654422)
action argmin
action find_reverse_tuple_counts
relation P805
type Q5962346
type Q5962346
[{'concept': 'Q5962346'}, 'P805', 'Q2654422']
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MIN ( ?s ) AS ?e ) { SELECT DISTINCT ?k ( COUNT ( ?x ) AS ?s ) WHERE { ?x property:P805 ?k . ?x rdf:type ontology:Q5962346 . ?k rdf:type ontology:Q5962346 } GROUP BY ?k } } . { SELECT DISTINCT ?p ( COUNT ( ?d ) AS ?u ) WHERE { ?p rdf:type ontology:Q5962346 . ?d rdf:type ontology:Q5962346 . ?d property:P805 ?p } GROUP BY ?p } . FILTER ( ?u = ?e ) }
action argmin
action find_reverse_tuple_counts
relation subject of
type classification scheme
type classification scheme
[{'concept': 'classification scheme'}, 'subject of', 'sector of archives']
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MIN ( ?s ) AS ?e ) { SELECT DISTINCT ?k ( COUNT ( ?x ) AS ?s ) WHERE { ?x property:subject_of ?k . ?x rdf:type ontology:classification_scheme . ?k rdf:type ontology:classification_scheme } GROUP BY ?k } } . { SELECT DISTINCT ?p ( COUNT ( ?d ) AS ?u ) WHERE { ?p rdf:type ontology:classification_scheme . ?d rdf:type ontology:classification_scheme . ?d property:subject_of ?p } GROUP BY ?p } . FILTER ( ?u = ?e ) }
[]
classification scheme classification scheme
Q840400
SYSTEM
evolutionary biology
Q840400
(c(Q5962346),P805,Q2654422)
action argmin
action find_reverse_tuple_counts
relation P805
type Q5962346
type Q5962346
[ANSWER] have min number of classification schemes as their subject
[{'concept': 'Q5962346'}, 'P805', 'Q2654422']
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MIN ( ?s ) AS ?e ) { SELECT DISTINCT ?k ( COUNT ( ?x ) AS ?s ) WHERE { ?x property:P805 ?k . ?x rdf:type ontology:Q5962346 . ?k rdf:type ontology:Q5962346 } GROUP BY ?k } } . { SELECT DISTINCT ?p ( COUNT ( ?d ) AS ?u ) WHERE { ?p rdf:type ontology:Q5962346 . ?d rdf:type ontology:Q5962346 . ?d property:P805 ?p } GROUP BY ?p } . FILTER ( ?u = ?e ) }
evolutionary biology
Evolutionary biology have min number of classification schemes as their subject
evolutionary biology
action argmin
action find_reverse_tuple_counts
relation subject of
type classification scheme
type classification scheme
[{'concept': 'classification scheme'}, 'subject of', 'sector of archives']
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MIN ( ?s ) AS ?e ) { SELECT DISTINCT ?k ( COUNT ( ?x ) AS ?s ) WHERE { ?x property:subject_of ?k . ?x rdf:type ontology:classification_scheme . ?k rdf:type ontology:classification_scheme } GROUP BY ?k } } . { SELECT DISTINCT ?p ( COUNT ( ?d ) AS ?u ) WHERE { ?p rdf:type ontology:classification_scheme . ?d rdf:type ontology:classification_scheme . ?d property:subject_of ?p } GROUP BY ?p } . FILTER ( ?u = ?e ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P361
Q1914636 Q874405 Q5962346
USER
How many classification schemes are a component of more number of activities or social groups than that classification scheme ?
(c(Q5962346),P361,c(Q1914636)|c(Q874405))
action count
action greater
action union
action find_tuple_counts
relation P361
type Q5962346
type Q1914636
action find_tuple_counts
relation P361
type Q5962346
type Q874405
action count
action filter_multi_types
action find
entity Q840400
relation P361
type Q1914636
type Q874405
[{'concept': 'Q5962346'}, 'P361', [{'concept': 'Q1914636'}, {'concept': 'Q874405'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) ?g WHERE { VALUES ( ?w ) { ( ontology:Q1914636 ) ( ontology:Q874405 ) } . ?t rdf:type ?w } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { { { ?h rdf:type ontology:Q1914636 } UNION { ?h rdf:type ontology:Q874405 } } . resource:Q840400 property:P361 ?h } } . FILTER ( ?b > ?y ) }
action count
action greater
action union
action find_tuple_counts
relation part of
type classification scheme
type activity
action find_tuple_counts
relation part of
type classification scheme
type social group
action count
action filter_multi_types
action find
entity evolutionary biology
relation part of
type activity
type social group
[{'concept': 'classification scheme'}, 'part of', [{'concept': 'activity'}, {'concept': 'social group'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) ?g WHERE { VALUES ( ?w ) { ( ontology:activity ) ( ontology:social_group ) } . ?t rdf:type ?w } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { { { ?h rdf:type ontology:activity } UNION { ?h rdf:type ontology:social_group } } . resource:evolutionary_biology property:part_of ?h } } . FILTER ( ?b > ?y ) }
[]
activity social group classification scheme
SYSTEM
8
Q220131 Q2654422 Q42250 Q205740 Q183257 Q853422 Q349479 Q192625
(c(Q5962346),P361,c(Q1914636)|c(Q874405))
action count
action greater
action union
action find_tuple_counts
relation P361
type Q5962346
type Q1914636
action find_tuple_counts
relation P361
type Q5962346
type Q874405
action count
action filter_multi_types
action find
entity Q840400
relation P361
type Q1914636
type Q874405
[ANSWER]
[{'concept': 'Q5962346'}, 'P361', [{'concept': 'Q1914636'}, {'concept': 'Q874405'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) ?g WHERE { VALUES ( ?w ) { ( ontology:Q1914636 ) ( ontology:Q874405 ) } . ?t rdf:type ?w } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { { { ?h rdf:type ontology:Q1914636 } UNION { ?h rdf:type ontology:Q874405 } } . resource:Q840400 property:P361 ?h } } . FILTER ( ?b > ?y ) }
zoo architecture sector of archives hydrology Egyptian mythology psychotherapy Paleomagnetism building industry linguistic typology
8
action count
action greater
action union
action find_tuple_counts
relation part of
type classification scheme
type activity
action find_tuple_counts
relation part of
type classification scheme
type social group
action count
action filter_multi_types
action find
entity evolutionary biology
relation part of
type activity
type social group
[{'concept': 'classification scheme'}, 'part of', [{'concept': 'activity'}, {'concept': 'social group'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?c ) WHERE { { SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) ?g WHERE { VALUES ( ?w ) { ( ontology:activity ) ( ontology:social_group ) } . ?t rdf:type ?w } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?y ) WHERE { { { ?h rdf:type ontology:activity } UNION { ?h rdf:type ontology:social_group } } . resource:evolutionary_biology property:part_of ?h } } . FILTER ( ?b > ?y ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q16059052 Q2654422
P361 P1196
Q1914636
USER
Which activities are sector of archives a component of or best describe with circumstances of death of Harry Minto ?
OR((Q2654422,P361,c(Q1914636)), (Q16059052,P1196,c(Q1914636)))
action filter_type
action union
action find
entity Q2654422
relation P361
action find
entity Q16059052
relation P1196
type Q1914636
{'OR': [['Q2654422', 'P361', {'concept': 'Q1914636'}], ['Q16059052', 'P1196', {'concept': 'Q1914636'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q16059052 property:P1196 ?m } UNION { resource:Q2654422 property:P361 ?m } } . ?m rdf:type ontology:Q1914636 }
Harry Minto sector of archives
action filter_type
action union
action find
entity sector of archives
relation part of
action find
entity Harry Minto
relation manner of death
type activity
{'OR': [['sector of archives', 'part of', {'concept': 'activity'}], ['Harry Minto', 'manner of death', {'concept': 'activity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Harry_Minto property:manner_of_death ?m } UNION { resource:sector_of_archives property:part_of ?m } } . ?m rdf:type ontology:activity }
[]
activity
Q31728 Q149086
SYSTEM
public administration, homicide
Q31728 Q149086
OR((Q2654422,P361,c(Q1914636)), (Q16059052,P1196,c(Q1914636)))
action filter_type
action union
action find
entity Q2654422
relation P361
action find
entity Q16059052
relation P1196
type Q1914636
[ANSWERS] are sector of archives a component of or best describe with circumstances of death of Harry Minto
{'OR': [['Q2654422', 'P361', {'concept': 'Q1914636'}], ['Q16059052', 'P1196', {'concept': 'Q1914636'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q16059052 property:P1196 ?m } UNION { resource:Q2654422 property:P361 ?m } } . ?m rdf:type ontology:Q1914636 }
public administration homicide
Public administration and homicide are sector of archives a component of or best describe with circumstances of death of Harry Minto
public administration homicide
action filter_type
action union
action find
entity sector of archives
relation part of
action find
entity Harry Minto
relation manner of death
type activity
{'OR': [['sector of archives', 'part of', {'concept': 'activity'}], ['Harry Minto', 'manner of death', {'concept': 'activity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Harry_Minto property:manner_of_death ?m } UNION { resource:sector_of_archives property:part_of ?m } } . ?m rdf:type ontology:activity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q17
P85
Q484692
USER
What is the national anthem of Japan ?
(Q17,P85,c(Q484692))
action filter_type
action find
entity Q17
relation P85
type Q484692
['Q17', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?w WHERE { resource:Q17 property:P85 ?w . ?w rdf:type ontology:Q484692 }
Japan
action filter_type
action find
entity Japan
relation anthem
type hymn
['Japan', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?w WHERE { resource:Japan property:anthem ?w . ?w rdf:type ontology:hymn }
[]
hymn
Q81534
SYSTEM
Kimi Ga Yo
Q81534
(Q17,P85,c(Q484692))
action filter_type
action find
entity Q17
relation P85
type Q484692
The national anthem of Japan is the [ANSWER]
['Q17', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?w WHERE { resource:Q17 property:P85 ?w . ?w rdf:type ontology:Q484692 }
Kimi Ga Yo
The national anthem of Japan is the Kimi Ga Yo
Kimi Ga Yo
action filter_type
action find
entity Japan
relation anthem
type hymn
['Japan', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?w WHERE { resource:Japan property:anthem ?w . ?w rdf:type ontology:hymn }
[]