Simple Question (Direct)
Simple Question
Q3376846
P1412
Q34770
USER
Which language can Peter Richardson read ?
(Q3376846,P1412,c(Q34770))
action filter_type
action find
entity Q3376846
relation P1412
type Q34770
['Q3376846', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q34770 . resource:Q3376846 property:P1412 ?p }
Peter Richardson
action filter_type
action find
entity Peter Richardson
relation languages spoken, written or signed
type language
['Peter Richardson', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:language . resource:Peter_Richardson property:languages_spoken,_written_or_signed ?p }
[]
language
Q1860
SYSTEM
English
Q1860
(Q3376846,P1412,c(Q34770))
action filter_type
action find
entity Q3376846
relation P1412
type Q34770
Peter Richardson can read to [ANSWER]
['Q3376846', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q34770 . resource:Q3376846 property:P1412 ?p }
English
Peter Richardson can read to English
English
action filter_type
action find
entity Peter Richardson
relation languages spoken, written or signed
type language
['Peter Richardson', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:language . resource:Peter_Richardson property:languages_spoken,_written_or_signed ?p }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3376846
P21
Q290
USER
Which sex does that person have ?
(Q1860,P21,c(Q290))
action filter_type
action find
entity Q3376846
relation P21
type Q290
['Q1860', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q290 . resource:Q3376846 property:P21 ?z }
Peter Richardson
action filter_type
action find
entity Peter Richardson
relation gender
type sex
['English', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:sex . resource:Peter_Richardson property:gender ?z }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1860,P21,c(Q290))
action filter_type
action find
entity Q3376846
relation P21
type Q290
That person has a [ANSWER]
['Q1860', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q290 . resource:Q3376846 property:P21 ?z }
male
That person has a male
male
action filter_type
action find
entity Peter Richardson
relation gender
type sex
['English', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:sex . resource:Peter_Richardson property:gender ?z }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q6581097 Q10324691
P21
Q502895
USER
Is Manuel de Valadão Pimentel a that sex ?
(Q10324691,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q10324691
relation P21
['Q10324691', 'P21', 'Q6581097']
ASK WHERE { resource:Q10324691 property:P21 resource:Q6581097 }
male Manuel de Valadão Pimentel
action is_in
entity male
action find
entity Manuel de Valadão Pimentel
relation gender
['Manuel de Valadão Pimentel', 'gender', 'male']
ASK WHERE { resource:Manuel_de_Valadão_Pimentel property:gender resource:male }
[]
common name
SYSTEM
YES
(Q10324691,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q10324691
relation P21
[ANSWER]
['Q10324691', 'P21', 'Q6581097']
ASK WHERE { resource:Q10324691 property:P21 resource:Q6581097 }
Yes
action is_in
entity male
action find
entity Manuel de Valadão Pimentel
relation gender
['Manuel de Valadão Pimentel', 'gender', 'male']
ASK WHERE { resource:Manuel_de_Valadão_Pimentel property:gender resource:male }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q1860 Q482835
P361
Q5962346
USER
Is English a portion of Type 209 submarine ?
(Q1860,P361,Q482835)
action is_in
entity Q482835
action find
entity Q1860
relation P361
['Q1860', 'P361', 'Q482835']
ASK WHERE { resource:Q1860 property:P361 resource:Q482835 }
English Type 209 submarine
action is_in
entity Type 209 submarine
action find
entity English
relation part of
['English', 'part of', 'Type 209 submarine']
ASK WHERE { resource:English property:part_of resource:Type_209_submarine }
[]
classification scheme
SYSTEM
NO
(Q1860,P361,Q482835)
action is_in
entity Q482835
action find
entity Q1860
relation P361
[ANSWER]
['Q1860', 'P361', 'Q482835']
ASK WHERE { resource:Q1860 property:P361 resource:Q482835 }
No
action is_in
entity Type 209 submarine
action find
entity English
relation part of
['English', 'part of', 'Type 209 submarine']
ASK WHERE { resource:English property:part_of resource:Type_209_submarine }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q35308
P407
Q34770 Q82799 Q482994
USER
How many languages are the languages of work for less number of names and albums than Old Irish ?
(c(Q82799)|c(Q482994),P407,c(Q34770))
action count
action less
action union
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
action find_reverse_tuple_counts
relation P407
type Q34770
type Q482994
action count
action filter_multi_types
action find_reverse
entity Q35308
relation P407
type Q82799
type Q482994
[[{'concept': 'Q82799'}, {'concept': 'Q482994'}], 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) ?p WHERE { { ?p rdf:type ontology:Q34770 . ?r rdf:type ontology:Q482994 . ?r property:P407 ?p } UNION { ?p rdf:type ontology:Q34770 . ?r rdf:type ontology:Q82799 . ?r property:P407 ?p } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?s ) WHERE { ?w property:P407 resource:Q35308 . { VALUES ( ?j ) { ( ontology:Q82799 ) ( ontology:Q482994 ) } . ?w rdf:type ?j } } } . FILTER ( ?i < ?s ) }
Old Irish
action count
action less
action union
action find_reverse_tuple_counts
relation language of work or name
type language
type name
action find_reverse_tuple_counts
relation language of work or name
type language
type album
action count
action filter_multi_types
action find_reverse
entity Old Irish
relation language of work or name
type name
type album
[[{'concept': 'name'}, {'concept': 'album'}], 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) ?p WHERE { { ?p rdf:type ontology:language . ?r rdf:type ontology:album . ?r property:language_of_work_or_name ?p } UNION { ?p rdf:type ontology:language . ?r rdf:type ontology:name . ?r property:language_of_work_or_name ?p } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?s ) WHERE { ?w property:language_of_work_or_name resource:Old_Irish . { VALUES ( ?j ) { ( ontology:name ) ( ontology:album ) } . ?w rdf:type ?j } } } . FILTER ( ?i < ?s ) }
[]
language name album
SYSTEM
19
Q132659 Q18130932 Q13414913 Q21161942 Q35499 Q37015 Q35726 Q34909 Q27403 Q1420587 Q36206 Q33976 Q33879 Q10498031 Q37041 Q25167 Q25164 Q36790 Q447117
(c(Q82799)|c(Q482994),P407,c(Q34770))
action count
action less
action union
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
action find_reverse_tuple_counts
relation P407
type Q34770
type Q482994
action count
action filter_multi_types
action find_reverse
entity Q35308
relation P407
type Q82799
type Q482994
[ANSWER]
[[{'concept': 'Q82799'}, {'concept': 'Q482994'}], 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) ?p WHERE { { ?p rdf:type ontology:Q34770 . ?r rdf:type ontology:Q482994 . ?r property:P407 ?p } UNION { ?p rdf:type ontology:Q34770 . ?r rdf:type ontology:Q82799 . ?r property:P407 ?p } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?s ) WHERE { ?w property:P407 resource:Q35308 . { VALUES ( ?j ) { ( ontology:Q82799 ) ( ontology:Q482994 ) } . ?w rdf:type ?j } } } . FILTER ( ?i < ?s ) }
Egyptian hieroglyphs Traditional Chinese Simplified Chinese Serbian written in Cyrillic Old Church Slavonic Riksmål Etruscan Old Icelandic Galatian Høgnorsk Lak Sardinian language Pangasinan language Old East Norse classical Chinese Bokmål Nynorsk Sumerian Old Egyptian
19
action count
action less
action union
action find_reverse_tuple_counts
relation language of work or name
type language
type name
action find_reverse_tuple_counts
relation language of work or name
type language
type album
action count
action filter_multi_types
action find_reverse
entity Old Irish
relation language of work or name
type name
type album
[[{'concept': 'name'}, {'concept': 'album'}], 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?n ) WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?i ) ?p WHERE { { ?p rdf:type ontology:language . ?r rdf:type ontology:album . ?r property:language_of_work_or_name ?p } UNION { ?p rdf:type ontology:language . ?r rdf:type ontology:name . ?r property:language_of_work_or_name ?p } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?s ) WHERE { ?w property:language_of_work_or_name resource:Old_Irish . { VALUES ( ?j ) { ( ontology:name ) ( ontology:album ) } . ?w rdf:type ?j } } } . FILTER ( ?i < ?s ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q1860
P407
Q34770 Q82799 Q482994
USER
And what about English?
(c(Q82799)|c(Q482994),P407,c(Q34770))
action count
action less
action union
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
action find_reverse_tuple_counts
relation P407
type Q34770
type Q482994
action count
action filter_multi_types
action find_reverse
entity Q1860
relation P407
type Q82799
type Q482994
[[{'concept': 'Q82799'}, {'concept': 'Q482994'}], 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?g ) ?o WHERE { ?c rdf:type ?n . VALUES ( ?n ) { ( ontology:Q82799 ) ( ontology:Q482994 ) } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { ?s property:P407 resource:Q1860 . { { ?s rdf:type ontology:Q82799 } UNION { ?s rdf:type ontology:Q482994 } } } } . FILTER ( ?g < ?r ) }
English
action count
action less
action union
action find_reverse_tuple_counts
relation language of work or name
type language
type name
action find_reverse_tuple_counts
relation language of work or name
type language
type album
action count
action filter_multi_types
action find_reverse
entity English
relation language of work or name
type name
type album
[[{'concept': 'name'}, {'concept': 'album'}], 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?g ) ?o WHERE { ?c rdf:type ?n . VALUES ( ?n ) { ( ontology:name ) ( ontology:album ) } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { ?s property:language_of_work_or_name resource:English . { { ?s rdf:type ontology:name } UNION { ?s rdf:type ontology:album } } } } . FILTER ( ?g < ?r ) }
[]
language name album
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)|c(Q482994),P407,c(Q34770))
action count
action less
action union
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
action find_reverse_tuple_counts
relation P407
type Q34770
type Q482994
action count
action filter_multi_types
action find_reverse
entity Q1860
relation P407
type Q82799
type Q482994
[ANSWER]
[[{'concept': 'Q82799'}, {'concept': 'Q482994'}], 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?g ) ?o WHERE { ?c rdf:type ?n . VALUES ( ?n ) { ( ontology:Q82799 ) ( ontology:Q482994 ) } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { ?s property:P407 resource:Q1860 . { { ?s rdf:type ontology:Q82799 } UNION { ?s rdf:type ontology:Q482994 } } } } . FILTER ( ?g < ?r ) }
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 union
action find_reverse_tuple_counts
relation language of work or name
type language
type name
action find_reverse_tuple_counts
relation language of work or name
type language
type album
action count
action filter_multi_types
action find_reverse
entity English
relation language of work or name
type name
type album
[[{'concept': 'name'}, {'concept': 'album'}], 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?g ) ?o WHERE { ?c rdf:type ?n . VALUES ( ?n ) { ( ontology:name ) ( ontology:album ) } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?r ) WHERE { ?s property:language_of_work_or_name resource:English . { { ?s rdf:type ontology:name } UNION { ?s rdf:type ontology:album } } } } . FILTER ( ?g < ?r ) }
[]