Simple Question (Direct)
Simple Question
Q6376783
P241
Q781132
USER
Which military branch contains Kathleen L. Martin as its part ?
(Q6376783,P241,c(Q781132))
action filter_type
action find
entity Q6376783
relation P241
type Q781132
['Q6376783', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?j WHERE { resource:Q6376783 property:P241 ?j . ?j rdf:type ontology:Q781132 }
Kathleen L. Martin
action filter_type
action find
entity Kathleen L. Martin
relation military branch
type military branch
['Kathleen L. Martin', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?j WHERE { resource:Kathleen_L._Martin property:military_branch ?j . ?j rdf:type ontology:military_branch }
[]
military branch
Q11220
SYSTEM
United States Navy
Q11220
(Q6376783,P241,c(Q781132))
action filter_type
action find
entity Q6376783
relation P241
type Q781132
U [ANSWER] contains Kathleen L. Martin as its part
['Q6376783', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?j WHERE { resource:Q6376783 property:P241 ?j . ?j rdf:type ontology:Q781132 }
United States Navy
U United States Navy contains Kathleen L. Martin as its part
United States Navy
action filter_type
action find
entity Kathleen L. Martin
relation military branch
type military branch
['Kathleen L. Martin', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?j WHERE { resource:Kathleen_L._Martin property:military_branch ?j . ?j rdf:type ontology:military_branch }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6376783
P734
Q82799
USER
Which name is associated with Kathleen L. Martin ?
(Q6376783,P734,c(Q82799))
action filter_type
action find
entity Q6376783
relation P734
type Q82799
['Q6376783', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?d WHERE { resource:Q6376783 property:P734 ?d . ?d rdf:type ontology:Q82799 }
Kathleen L. Martin
action filter_type
action find
entity Kathleen L. Martin
relation family name
type name
['Kathleen L. Martin', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?d WHERE { resource:Kathleen_L._Martin property:family_name ?d . ?d rdf:type ontology:name }
[]
name
Q17744604
SYSTEM
Martin
Q17744604
(Q6376783,P734,c(Q82799))
action filter_type
action find
entity Q6376783
relation P734
type Q82799
[ANSWER] is associated with Kathleen L. [ANSWER]
['Q6376783', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?d WHERE { resource:Q6376783 property:P734 ?d . ?d rdf:type ontology:Q82799 }
Martin
Martin is associated with Kathleen L. Martin
Martin
action filter_type
action find
entity Kathleen L. Martin
relation family name
type name
['Kathleen L. Martin', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?d WHERE { resource:Kathleen_L._Martin property:family_name ?d . ?d rdf:type ontology:name }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q9056
P407
Q34770 Q82799
USER
Which languages are the languages of work for lesser number of names than Czech ?
(c(Q82799),P407,c(Q34770))
action less
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
action count
action filter_type
action find_reverse
entity Q9056
relation P407
type Q82799
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?n ) AS ?s ) WHERE { ?r rdf:type ontology:Q34770 . ?n rdf:type ontology:Q82799 . ?n property:P407 ?r } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?c ) WHERE { ?w rdf:type ontology:Q82799 . ?w property:P407 resource:Q9056 } } . FILTER ( ?s < ?c ) }
Czech
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 Czech
relation language of work or name
type name
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?n ) AS ?s ) WHERE { ?r rdf:type ontology:language . ?n rdf:type ontology:name . ?n property:language_of_work_or_name ?r } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?c ) WHERE { ?w rdf:type ontology:name . ?w property:language_of_work_or_name resource:Czech } } . FILTER ( ?s < ?c ) }
[]
language name
Q447117 Q35499 Q35726
SYSTEM
Old Egyptian, Old Church Slavonic, Etruscan
Q132659 Q18130932 Q13414913 Q21161942 Q35499 Q37015 Q8785 Q35726 Q34909 Q27403 Q1420587 Q36206 Q33976 Q33879 Q10498031 Q397 Q8752 Q37041 Q35505 Q25167 Q25164 Q56982 Q35308 Q36790 Q447117
(c(Q82799),P407,c(Q34770))
action less
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
action count
action filter_type
action find_reverse
entity Q9056
relation P407
type Q82799
[ANSWERS] are the languages of work for lesser number of names than Czech
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?n ) AS ?s ) WHERE { ?r rdf:type ontology:Q34770 . ?n rdf:type ontology:Q82799 . ?n property:P407 ?r } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?c ) WHERE { ?w rdf:type ontology:Q82799 . ?w property:P407 resource:Q9056 } } . FILTER ( ?s < ?c ) }
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 Basque classical Chinese Old Norse language Bokmål Nynorsk Judaeo-Portuguese Old Irish Sumerian Old Egyptian
Old Egyptian, Old Church Slavonic and Etruscan are the languages of work for lesser number of names than Czech
Old Egyptian Old Church Slavonic Etruscan
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 Czech
relation language of work or name
type name
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?n ) AS ?s ) WHERE { ?r rdf:type ontology:language . ?n rdf:type ontology:name . ?n property:language_of_work_or_name ?r } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?c ) WHERE { ?w rdf:type ontology:name . ?w property:language_of_work_or_name resource:Czech } } . FILTER ( ?s < ?c ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q8752
P407
Q34770 Q82799
USER
And what about Basque?
(c(Q82799),P407,c(Q34770))
action less
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
action count
action filter_type
action find_reverse
entity Q8752
relation P407
type Q82799
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?f ) AS ?x ) WHERE { ?j rdf:type ontology:Q34770 . ?f rdf:type ontology:Q82799 . ?f property:P407 ?j } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?v ) WHERE { ?k rdf:type ontology:Q82799 . ?k property:P407 resource:Q8752 } } . FILTER ( ?x < ?v ) }
Basque
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 Basque
relation language of work or name
type name
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?f ) AS ?x ) WHERE { ?j rdf:type ontology:language . ?f rdf:type ontology:name . ?f property:language_of_work_or_name ?j } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?v ) WHERE { ?k rdf:type ontology:name . ?k property:language_of_work_or_name resource:Basque } } . FILTER ( ?x < ?v ) }
[]
language name
Q447117 Q35499 Q35726
SYSTEM
Old Egyptian, Old Church Slavonic, Etruscan
Q132659 Q18130932 Q13414913 Q21161942 Q35499 Q37015 Q8785 Q35726 Q34909 Q27403 Q1420587 Q36206 Q33976 Q33879 Q10498031 Q397 Q37041 Q35505 Q25167 Q25164 Q56982 Q35308 Q36790 Q447117
(c(Q82799),P407,c(Q34770))
action less
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
action count
action filter_type
action find_reverse
entity Q8752
relation P407
type Q82799
[ANSWERS]
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?f ) AS ?x ) WHERE { ?j rdf:type ontology:Q34770 . ?f rdf:type ontology:Q82799 . ?f property:P407 ?j } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?v ) WHERE { ?k rdf:type ontology:Q82799 . ?k property:P407 resource:Q8752 } } . FILTER ( ?x < ?v ) }
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 classical Chinese Old Norse language Bokmål Nynorsk Judaeo-Portuguese Old Irish Sumerian Old Egyptian
Old Egyptian Old Church Slavonic Etruscan
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 Basque
relation language of work or name
type name
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?f ) AS ?x ) WHERE { ?j rdf:type ontology:language . ?f rdf:type ontology:name . ?f property:language_of_work_or_name ?j } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?v ) WHERE { ?k rdf:type ontology:name . ?k property:language_of_work_or_name resource:Basque } } . FILTER ( ?x < ?v ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q35499
P144
Q5962346
USER
Which classification scheme is based on that language ?
(c(Q5962346),P144,Q35499)
action filter_type
action find_reverse
entity Q35499
relation P144
type Q5962346
[{'concept': 'Q5962346'}, 'P144', 'Q35499']
SELECT DISTINCT ?q WHERE { ?q property:P144 resource:Q35499 . ?q rdf:type ontology:Q5962346 }
Old Church Slavonic
action filter_type
action find_reverse
entity Old Church Slavonic
relation based on
type classification scheme
[{'concept': 'classification scheme'}, 'based on', 'Old Church Slavonic']
SELECT DISTINCT ?q WHERE { ?q property:based_on resource:Old_Church_Slavonic . ?q rdf:type ontology:classification_scheme }
[]
classification scheme
Clarification for simple ques.
Q35726
SYSTEM
Did you mean Etruscan ?
Q447117 Q35499 Q35726
(c(Q5962346),P144,Q447117) (c(Q5962346),P144,Q35499) (c(Q5962346),P144,Q35726)
[ANSWER]
[{'concept': 'Q5962346'}, 'P144', 'Q447117'] [{'concept': 'Q5962346'}, 'P144', 'Q35499'] [{'concept': 'Q5962346'}, 'P144', 'Q35726']
SELECT DISTINCT ?q WHERE { ?q property:P144 resource:Q35499 . ?q rdf:type ontology:Q5962346 }
Old Egyptian Old Church Slavonic Etruscan
Did you mean Etruscan ?
Etruscan
[{'concept': 'classification scheme'}, 'based on', 'Old Egyptian'] [{'concept': 'classification scheme'}, 'based on', 'Old Church Slavonic'] [{'concept': 'classification scheme'}, 'based on', 'Etruscan']
SELECT DISTINCT ?q WHERE { ?q property:based_on resource:Old_Church_Slavonic . ?q rdf:type ontology:classification_scheme }
[]
Simple Question (Coreferenced)
USER
No, I meant Old Church Slavonic. Could you tell me the answer for that?
(c(Q5962346),P144,Q35499)
Q35499
[{'concept': 'Q5962346'}, 'P144', 'Q35499']
[{'concept': 'classification scheme'}, 'based on', 'Old Church Slavonic']
[]
Q145852
SYSTEM
West Slavic languages
Q145852
(c(Q5962346),P144,Q35499)
action filter_type
action find_reverse
entity Q35499
relation P144
type Q5962346
The [ANSWER] is based on that language
[{'concept': 'Q5962346'}, 'P144', 'Q35499']
SELECT DISTINCT ?q WHERE { ?q property:P144 resource:Q35499 . ?q rdf:type ontology:Q5962346 }
West Slavic languages
The West Slavic languages is based on that language
West Slavic languages
action filter_type
action find_reverse
entity Old Church Slavonic
relation based on
type classification scheme
[{'concept': 'classification scheme'}, 'based on', 'Old Church Slavonic']
SELECT DISTINCT ?q WHERE { ?q property:based_on resource:Old_Church_Slavonic . ?q rdf:type ontology:classification_scheme }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P520
Q15142889 Q153556 Q5962346
USER
How many classification schemes uses approximately 1 weapon families and ranged weapons for protection ?
(c(Q5962346),P520,c(Q15142889)|c(Q153556))
action count
action approx
action union
action find_tuple_counts
relation P520
type Q5962346
type Q15142889
action find_tuple_counts
relation P520
type Q5962346
type Q153556
value 1
[{'concept': 'Q5962346'}, 'P520', [{'concept': 'Q15142889'}, {'concept': 'Q153556'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) WHERE { FILTER ( ?e = 1 ) . { SELECT DISTINCT ?c ( COUNT ( ?m ) AS ?e ) WHERE { { ?c property:P520 ?m . ?c rdf:type ontology:Q5962346 . ?m rdf:type ontology:Q15142889 } UNION { ?c rdf:type ontology:Q5962346 . ?m rdf:type ontology:Q153556 . ?c property:P520 ?m } } GROUP BY ?c } }
action count
action approx
action union
action find_tuple_counts
relation armament
type classification scheme
type weapon family
action find_tuple_counts
relation armament
type classification scheme
type ranged weapon
value 1
[{'concept': 'classification scheme'}, 'armament', [{'concept': 'weapon family'}, {'concept': 'ranged weapon'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) WHERE { FILTER ( ?e = 1 ) . { SELECT DISTINCT ?c ( COUNT ( ?m ) AS ?e ) WHERE { { ?c property:armament ?m . ?c rdf:type ontology:classification_scheme . ?m rdf:type ontology:weapon_family } UNION { ?c rdf:type ontology:classification_scheme . ?m rdf:type ontology:ranged_weapon . ?c property:armament ?m } } GROUP BY ?c } }
[]
weapon family ranged weapon classification scheme
SYSTEM
18
Q1626375 Q385734 Q1068329 Q4367155 Q846078 Q1066814 Q10434936 Q7449173 Q640482 Q1194287 Q337990 Q7860642 Q4172473 Q1782356 Q528109 Q6675326 Q404541 Q842423
(c(Q5962346),P520,c(Q15142889)|c(Q153556))
action count
action approx
action union
action find_tuple_counts
relation P520
type Q5962346
type Q15142889
action find_tuple_counts
relation P520
type Q5962346
type Q153556
value 1
[ANSWER]
[{'concept': 'Q5962346'}, 'P520', [{'concept': 'Q15142889'}, {'concept': 'Q153556'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) WHERE { FILTER ( ?e = 1 ) . { SELECT DISTINCT ?c ( COUNT ( ?m ) AS ?e ) WHERE { { ?c property:P520 ?m . ?c rdf:type ontology:Q5962346 . ?m rdf:type ontology:Q15142889 } UNION { ?c rdf:type ontology:Q5962346 . ?m rdf:type ontology:Q153556 . ?c property:P520 ?m } } GROUP BY ?c } }
Project 615 Whiskey-class submarine Golf-class submarine Charlie II-class submarine Romeo-class submarine Charlie-class submarine Braxen-class submarine Victor I class submarine Borei-class submarine Tango-class submarine Juliett class submarine Type 032 submarine Echo I class submarine Delta IV-class submarine Hotel-class submarine Echo II class submarine Aigrette-class submarine Foxtrot-class submarine
18
action count
action approx
action union
action find_tuple_counts
relation armament
type classification scheme
type weapon family
action find_tuple_counts
relation armament
type classification scheme
type ranged weapon
value 1
[{'concept': 'classification scheme'}, 'armament', [{'concept': 'weapon family'}, {'concept': 'ranged weapon'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) WHERE { FILTER ( ?e = 1 ) . { SELECT DISTINCT ?c ( COUNT ( ?m ) AS ?e ) WHERE { { ?c property:armament ?m . ?c rdf:type ontology:classification_scheme . ?m rdf:type ontology:weapon_family } UNION { ?c rdf:type ontology:classification_scheme . ?m rdf:type ontology:ranged_weapon . ?c property:armament ?m } } GROUP BY ?c } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q1669994
P282
Q8192 Q9779 Q34770
USER
How many languages have writing system as approximately the same number of writing systems or alphabets as Minoan language ?
(c(Q34770),P282,c(Q8192)|c(Q9779))
action count
action approx
action union
action find_tuple_counts
relation P282
type Q34770
type Q8192
action find_tuple_counts
relation P282
type Q34770
type Q9779
action count
action filter_multi_types
action find
entity Q1669994
relation P282
type Q8192
type Q9779
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q8192'}, {'concept': 'Q9779'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?f ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?r ) AS ?w ) WHERE { VALUES ( ?e ) { ( ontology:Q9779 ) ( ontology:Q8192 ) } . ?r rdf:type ?e } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?p ) WHERE { { VALUES ( ?k ) { ( ontology:Q8192 ) ( ontology:Q9779 ) } . ?m rdf:type ?k } . resource:Q1669994 property:P282 ?m } } . FILTER ( ?w = ?p ) }
Minoan language
action count
action approx
action union
action find_tuple_counts
relation writing system
type language
type writing system
action find_tuple_counts
relation writing system
type language
type alphabet
action count
action filter_multi_types
action find
entity Minoan language
relation writing system
type writing system
type alphabet
[{'concept': 'language'}, 'writing system', [{'concept': 'writing system'}, {'concept': 'alphabet'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?f ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?r ) AS ?w ) WHERE { VALUES ( ?e ) { ( ontology:alphabet ) ( ontology:writing_system ) } . ?r rdf:type ?e } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?p ) WHERE { { VALUES ( ?k ) { ( ontology:writing_system ) ( ontology:alphabet ) } . ?m rdf:type ?k } . resource:Minoan_language property:writing_system ?m } } . FILTER ( ?w = ?p ) }
[]
writing system alphabet language
SYSTEM
8
Q13211 Q35499 Q1669994 Q33251 Q21161942 Q1639124 Q36464 Q652
(c(Q34770),P282,c(Q8192)|c(Q9779))
action count
action approx
action union
action find_tuple_counts
relation P282
type Q34770
type Q8192
action find_tuple_counts
relation P282
type Q34770
type Q9779
action count
action filter_multi_types
action find
entity Q1669994
relation P282
type Q8192
type Q9779
[ANSWER]
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q8192'}, {'concept': 'Q9779'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?f ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?r ) AS ?w ) WHERE { VALUES ( ?e ) { ( ontology:Q9779 ) ( ontology:Q8192 ) } . ?r rdf:type ?e } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?p ) WHERE { { VALUES ( ?k ) { ( ontology:Q8192 ) ( ontology:Q9779 ) } . ?m rdf:type ?k } . resource:Q1669994 property:P282 ?m } } . FILTER ( ?w = ?p ) }
Ruthenian Old Church Slavonic Minoan language Church Slavonic Serbian written in Cyrillic Slavoserbian Nivkh language Italian
8
action count
action approx
action union
action find_tuple_counts
relation writing system
type language
type writing system
action find_tuple_counts
relation writing system
type language
type alphabet
action count
action filter_multi_types
action find
entity Minoan language
relation writing system
type writing system
type alphabet
[{'concept': 'language'}, 'writing system', [{'concept': 'writing system'}, {'concept': 'alphabet'}]]
SELECT DISTINCT ( COUNT ( ?q ) AS ?f ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?r ) AS ?w ) WHERE { VALUES ( ?e ) { ( ontology:alphabet ) ( ontology:writing_system ) } . ?r rdf:type ?e } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?p ) WHERE { { VALUES ( ?k ) { ( ontology:writing_system ) ( ontology:alphabet ) } . ?m rdf:type ?k } . resource:Minoan_language property:writing_system ?m } } . FILTER ( ?w = ?p ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q8752
P282
Q8192 Q9779 Q34770
USER
And also tell me about Basque?
(c(Q34770),P282,c(Q8192)|c(Q9779))
action count
action approx
action union
action find_tuple_counts
relation P282
type Q34770
type Q8192
action find_tuple_counts
relation P282
type Q34770
type Q9779
action count
action filter_multi_types
action find
entity Q8752
relation P282
type Q8192
type Q9779
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q8192'}, {'concept': 'Q9779'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?a ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?d ) AS ?i ) WHERE { { ?m property:P282 ?d . ?m rdf:type ontology:Q34770 . ?d rdf:type ontology:Q8192 } UNION { ?m property:P282 ?d . ?m rdf:type ontology:Q34770 . ?d rdf:type ontology:Q9779 } } GROUP BY ?m } . FILTER ( ?i = ?q ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?q ) WHERE { resource:Q8752 property:P282 ?e . { ?e rdf:type ?c . VALUES ( ?c ) { ( ontology:Q8192 ) ( ontology:Q9779 ) } } } } }
Basque
action count
action approx
action union
action find_tuple_counts
relation writing system
type language
type writing system
action find_tuple_counts
relation writing system
type language
type alphabet
action count
action filter_multi_types
action find
entity Basque
relation writing system
type writing system
type alphabet
[{'concept': 'language'}, 'writing system', [{'concept': 'writing system'}, {'concept': 'alphabet'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?a ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?d ) AS ?i ) WHERE { { ?m property:writing_system ?d . ?m rdf:type ontology:language . ?d rdf:type ontology:writing_system } UNION { ?m property:writing_system ?d . ?m rdf:type ontology:language . ?d rdf:type ontology:alphabet } } GROUP BY ?m } . FILTER ( ?i = ?q ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?q ) WHERE { resource:Basque property:writing_system ?e . { ?e rdf:type ?c . VALUES ( ?c ) { ( ontology:writing_system ) ( ontology:alphabet ) } } } } }
[]
writing system alphabet language
SYSTEM
49
Q7102906 Q20832 Q29572 Q20831 Q1133488 Q13414913 Q402878 Q36708 Q35470 Q36741 Q35668 Q8785 Q35726 Q1321 Q21161949 Q25167 Q18130932 Q11732220 Q33976 Q856383 Q149838 Q47625 Q36822 Q2705672 Q33879 Q7362035 Q36795 Q56472 Q6047309 Q8752 Q36178 Q9056 Q397 Q20972034 Q56512 Q35505 Q36957 Q25164 Q56982 Q35308 Q36790 Q1860 Q36116 Q36751 Q29977 Q837985 Q447117 Q7511561 Q33982
(c(Q34770),P282,c(Q8192)|c(Q9779))
action count
action approx
action union
action find_tuple_counts
relation P282
type Q34770
type Q8192
action find_tuple_counts
relation P282
type Q34770
type Q9779
action count
action filter_multi_types
action find
entity Q8752
relation P282
type Q8192
type Q9779
[ANSWER]
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q8192'}, {'concept': 'Q9779'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?a ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?d ) AS ?i ) WHERE { { ?m property:P282 ?d . ?m rdf:type ontology:Q34770 . ?d rdf:type ontology:Q8192 } UNION { ?m property:P282 ?d . ?m rdf:type ontology:Q34770 . ?d rdf:type ontology:Q9779 } } GROUP BY ?m } . FILTER ( ?i = ?q ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?q ) WHERE { resource:Q8752 property:P282 ?e . { ?e rdf:type ?c . VALUES ( ?c ) { ( ontology:Q8192 ) ( ontology:Q9779 ) } } } } }
Orizaba Nahuatl Wailaki language Avestan Cahto language Old Gutnish Simplified Chinese Middle Polish Norn Elamite language Polabian Hittite Armenian Etruscan Spanish Serbian written in Latin script Bokmål Traditional Chinese Archaic Greek Sardinian language Pictish Old Polish Burgundian Slovincian language Paeonian language Pangasinan language Roman Khowar Tartessian Shuadit language Central Nahuatl Basque Nabataean language Czech Latin Classic Greek Anêm language Old Norse language Umbrian Nynorsk Judaeo-Portuguese Old Irish Sumerian English Middle Irish Phrygian language Gaulish Middle High German Old Egyptian Sierra Puebla Nahuatl Low Prussian
49
action count
action approx
action union
action find_tuple_counts
relation writing system
type language
type writing system
action find_tuple_counts
relation writing system
type language
type alphabet
action count
action filter_multi_types
action find
entity Basque
relation writing system
type writing system
type alphabet
[{'concept': 'language'}, 'writing system', [{'concept': 'writing system'}, {'concept': 'alphabet'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?a ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?d ) AS ?i ) WHERE { { ?m property:writing_system ?d . ?m rdf:type ontology:language . ?d rdf:type ontology:writing_system } UNION { ?m property:writing_system ?d . ?m rdf:type ontology:language . ?d rdf:type ontology:alphabet } } GROUP BY ?m } . FILTER ( ?i = ?q ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?q ) WHERE { resource:Basque property:writing_system ?e . { ?e rdf:type ?c . VALUES ( ?c ) { ( ontology:writing_system ) ( ontology:alphabet ) } } } } }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q1230175 Q6376783
P27
Q15617994
USER
Which administrative territories are Kathleen L. Martin and John Morton an inhabitant of ?
AND((Q6376783,P27,c(Q15617994)), (Q1230175,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q6376783
relation P27
action find
entity Q1230175
relation P27
type Q15617994
{'AND': [['Q6376783', 'P27', {'concept': 'Q15617994'}], ['Q1230175', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { resource:Q6376783 property:P27 ?m . resource:Q1230175 property:P27 ?m . ?m rdf:type ontology:Q15617994 }
John Morton Kathleen L. Martin
action filter_type
action intersection
action find
entity Kathleen L. Martin
relation country of citizenship
action find
entity John Morton
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Kathleen L. Martin', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['John Morton', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { resource:Kathleen_L._Martin property:country_of_citizenship ?m . resource:John_Morton property:country_of_citizenship ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
AND((Q6376783,P27,c(Q15617994)), (Q1230175,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q6376783
relation P27
action find
entity Q1230175
relation P27
type Q15617994
[ANSWER] is Kathleen L. Martin and John Morton an inhabitant of
{'AND': [['Q6376783', 'P27', {'concept': 'Q15617994'}], ['Q1230175', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { resource:Q6376783 property:P27 ?m . resource:Q1230175 property:P27 ?m . ?m rdf:type ontology:Q15617994 }
United States of America
United States of America is Kathleen L. Martin and John Morton an inhabitant of
United States of America
action filter_type
action intersection
action find
entity Kathleen L. Martin
relation country of citizenship
action find
entity John Morton
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Kathleen L. Martin', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['John Morton', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { resource:Kathleen_L._Martin property:country_of_citizenship ?m . resource:John_Morton property:country_of_citizenship ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q30 Q4879918
P47
Q15617994
USER
Does Beeny share border with that one ?
(Q30,P47,Q4879918)
action is_in
entity Q4879918
action find
entity Q30
relation P47
['Q30', 'P47', 'Q4879918']
ASK WHERE { resource:Q30 property:P47 resource:Q4879918 }
United States of America Beeny
action is_in
entity Beeny
action find
entity United States of America
relation shares border with
['United States of America', 'shares border with', 'Beeny']
ASK WHERE { resource:United_States_of_America property:shares_border_with resource:Beeny }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q30,P47,Q4879918)
action is_in
entity Q4879918
action find
entity Q30
relation P47
[ANSWER]
['Q30', 'P47', 'Q4879918']
ASK WHERE { resource:Q30 property:P47 resource:Q4879918 }
No
action is_in
entity Beeny
action find
entity United States of America
relation shares border with
['United States of America', 'shares border with', 'Beeny']
ASK WHERE { resource:United_States_of_America property:shares_border_with resource:Beeny }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1860 Q145852
P407
Q82799
USER
Which names use West Slavic languages or English as language ?
OR((c(Q82799),P407,Q145852), (c(Q82799),P407,Q1860))
action filter_type
action union
action find_reverse
entity Q145852
relation P407
action find_reverse
entity Q1860
relation P407
type Q82799
{'OR': [[{'concept': 'Q82799'}, 'P407', 'Q145852'], [{'concept': 'Q82799'}, 'P407', 'Q1860']]}
SELECT DISTINCT ?c WHERE { { { ?c property:P407 resource:Q1860 } UNION { ?c property:P407 resource:Q145852 } } . ?c rdf:type ontology:Q82799 }
English West Slavic languages
action filter_type
action union
action find_reverse
entity West Slavic languages
relation language of work or name
action find_reverse
entity English
relation language of work or name
type name
{'OR': [[{'concept': 'name'}, 'language of work or name', 'West Slavic languages'], [{'concept': 'name'}, 'language of work or name', 'English']]}
SELECT DISTINCT ?c WHERE { { { ?c property:language_of_work_or_name resource:English } UNION { ?c property:language_of_work_or_name resource:West_Slavic_languages } } . ?c rdf:type ontology:name }
[]
name
Q814088 Q1440104 Q9014839 Q2570283 Q1565753 Q1669080 Q16883649 Q4280567 Q16871937 Q16881170
SYSTEM
Some of them are Beerbohm, Fowler, Freeman, Wild, Johnston, Wallwork, Sparrow, Munro, Lawton, Phelps
Q179205 Q27259183 Q1276644 Q12800811 Q16870200 Q24229483 Q1333689 Q1724227 Q1324184 Q16877376 Q1128028 Q16865223 Q1544833 Q2790265 Q13420007 Q808994 Q14629485 Q27257371 Q1181211 Q7918051 Q16869665 Q16870376 Q4274203 Q16291107 Q18620245 Q1002298 Q16870499 Q20668001 Q16884098 Q1260558 Q1158612 Q19817029 Q1374920 Q16860438 Q20667149 Q1393924 Q20667144 Q347929 Q254906 Q1672459 Q2696422 Q205027 Q1284018 Q1259568 Q27252577 Q16275229 Q1231746 Q2754726 Q26869113 Q1182327 Q1978444 Q120401 Q20727135 Q5610441 Q16876534 Q27357173 Q4494802 Q13553584 Q318363 Q1592801 Q21003018 Q18209569 Q780883 Q1226552 Q2798428 Q1105306 Q16282643 Q16872027 Q20962502 Q2581264 Q2079518 Q2658113 Q21034720 Q1646493 Q18418758 Q21073008 Q21450552 Q928249 Q1158210 Q13099377 Q16915372 Q233193 Q1739730 Q59853 Q2688708 Q16883856 Q15804875 Q2697960 Q2780561 Q1230262 Q16870190 Q1470501 Q1158262 Q2043296 Q449411 Q1266539 Q2732758 Q20707849 Q1289978 Q1514838 Q6382344 Q2662465 Q16872373 Q2160353 Q14650387 Q2702454 Q16876864 Q16872546 Q2133832 Q203052 Q2170749 Q1215200 Q16275014 Q18342012 Q2701900 Q16870698 Q5220046 Q17165817 Q1009526 Q23041455 Q16874548 Q17097783 Q1158535 Q16871937 Q1572830 Q2720681 Q13360321 Q2658150 Q20997880 Q12191064 Q1437477 Q15785662 Q351735 Q2043243 Q1576162 Q7998664 Q27368535 Q25160197 Q1158321 Q2792882 Q2594455 Q3471405 Q1158446 Q1158882 Q2716369 Q13552078 Q15278566 Q2134042 Q16870396 Q2720749 Q2123241 Q27429562 Q13590682 Q2803433 Q17523692 Q1181223 Q426463 Q16290442 Q1047713 Q1158586 Q1587003 Q1686377 Q17149756 Q21511156 Q25017056 Q1794217 Q621915 Q13560595 Q13498051 Q1158139 Q16865846 Q13627772 Q16870414 Q15080511 Q21452013 Q1099246 Q4884687 Q1182331 Q1271862 Q1544163 Q1307544 Q1848748 Q2674114 Q2801971 Q1566218 Q1258639 Q10471460 Q908051 Q2691159 Q4955690 Q13581093 Q608991 Q10514602 Q15526904 Q1496534 Q10989264 Q908629 Q16882866 Q1393110 Q2800825 Q535214 Q1983554 Q13219396 Q1691276 Q1492185 Q1426311 Q1158566 Q1511218 Q16878076 Q13479473 Q1137817 Q1637287 Q14648920 Q16883838 Q4879429 Q1591772 Q21501722 Q913810 Q15785578 Q2658970 Q16872306 Q27450728 Q1158318 Q1953798 Q16882085 Q16869940 Q16870226 Q4097411 Q13553861 Q1427982 Q1797561 Q181502 Q13563379 Q19899706 Q2672029 Q20985269 Q20970454 Q5265065 Q1605060 Q15304761 Q15224082 Q2703557 Q16870299 Q18508917 Q6833447 Q15851235 Q16357613 Q5900583 Q5224110 Q16881170 Q2793828 Q18610168 Q1158195 Q7105720 Q11825166 Q2700390 Q21936502 Q16880573 Q21936527 Q1618000 Q1440104 Q1292621 Q5263823 Q2648323 Q1408775 Q16876684 Q1304629 Q2659856 Q5261248 Q2136484 Q8259652 Q13632220 Q1700760 Q16876458 Q2043255 Q2106585 Q1671244 Q27264995 Q2666084 Q1627663 Q2667762 Q21571367 Q27258609 Q16865651 Q1158452 Q656179 Q20661796 Q13553902 Q1471443 Q16882371 Q1791084 Q9014839 Q21057643 Q16860244 Q21043141 Q27356490 Q15830573 Q1095787 Q598459 Q2331622 Q25253492 Q424325 Q1351627 Q2803437 Q1707301 Q24229387 Q991110 Q1288199 Q25175977 Q817365 Q12189873 Q1926724 Q16876701 Q2694490 Q13570290 Q2350543 Q16277659 Q2671214 Q1158289 Q21482827 Q2793334 Q21405540 Q16277380 Q22809145 Q21484731 Q1104540 Q1158485 Q13418278 Q7491146 Q1413324 Q2675597 Q2570283 Q2664624 Q13421990 Q5637272 Q1261077 Q20671646 Q15788891 Q16877432 Q20664268 Q1399288 Q790638 Q2780460 Q19829516 Q1184721 Q5000472 Q914279 Q1138248 Q1260201 Q1679720 Q27254120 Q16871090 Q2405539 Q27450686 Q16872088 Q13368008 Q15229897 Q1158419 Q1637021 Q4859978 Q16032077 Q2364643 Q20994443 Q263542 Q10816799 Q1048306 Q20979432 Q2782528 Q25160539 Q1491359 Q991094 Q814088 Q16148136 Q2549042 Q15620049 Q12785963 Q16877890 Q27365901 Q1645480 Q16282224 Q19899700 Q16101731 Q383113 Q27266369 Q1348074 Q15822786 Q21468509 Q2159662 Q973239 Q2660575 Q1591965 Q16872403 Q1436608 Q2780710 Q2780711 Q8113084 Q1479191 Q806825 Q21209446 Q2696075 Q13221657 Q2652654 Q16479695 Q1965666 Q8270802 Q1158605 Q27254065 Q1546592 Q19817034 Q13552870 Q1375012 Q1628041 Q7849873 Q16870922 Q2526475 Q11247279 Q21452033 Q1620650 Q1596799 Q1484457 Q16278549 Q16293060 Q945123 Q16275284 Q16852655 Q1469854 Q21161805 Q16282271 Q1224613 Q16883860 Q16747244 Q1354011 Q4906926 Q1618104 Q306749 Q14915266 Q14915264 Q16276492 Q1544042 Q1260663 Q16882193 Q14915269 Q1534722 Q1287630 Q1139286 Q2109026 Q1177810 Q16880630 Q2085453 Q568872 Q4841580 Q25174340 Q1669080 Q1045962 Q1494488 Q2564123 Q896987 Q10859343 Q20998240 Q16869925 Q21450219 Q7162656 Q2778569 Q805107 Q1435352 Q1688722 Q1129762 Q12901049 Q2665383 Q17505763 Q1119151 Q5331334 Q27356272 Q1158545 Q6167976 Q1061262 Q2654471 Q13557582 Q20679907 Q16869709 Q24230528 Q16842504 Q2105042 Q16870619 Q16870899 Q16865192 Q2665316 Q16883643 Q20996347 Q827140 Q16883649 Q412179 Q6582834 Q1261064 Q16877153 Q1628315 Q2547568 Q1158185 Q2712864 Q1158188 Q826803 Q2703137 Q19838527 Q758259 Q1565753 Q4275617 Q4280567 Q1158382 Q1485942 Q1308329 Q16865687 Q1390707 Q1129545 Q301610 Q1551523 Q1158541 Q16871942 Q1295024 Q17032649 Q1484464 Q21493117 Q812568 Q1737658 Q1061482 Q1032817 Q21242872
OR((c(Q82799),P407,Q145852), (c(Q82799),P407,Q1860))
action filter_type
action union
action find_reverse
entity Q145852
relation P407
action find_reverse
entity Q1860
relation P407
type Q82799
[ANSWERS] use West Slavic languages or English as language
{'OR': [[{'concept': 'Q82799'}, 'P407', 'Q145852'], [{'concept': 'Q82799'}, 'P407', 'Q1860']]}
SELECT DISTINCT ?c WHERE { { { ?c property:P407 resource:Q1860 } UNION { ?c property:P407 resource:Q145852 } } . ?c rdf:type ontology:Q82799 }
Mitchell Trott Meredith Scott Glass Keyworth Gregory Rose Godden Moody Cole Butterfield Greenwood Norton Davis Barry Manning Ashwood Dearman Veeder (surname) Draper Hackett Maguire Tanner Dallas Coleman Harber Kershaw Swanston (surname) George Powell Jay Foran Bridges Creedon Humphries Ensko Wilkinson Hunt Iremonger Fraser Perry Heggie Burton Callaghan Colton Dixon Lane Humfrey Deeley Nestler Kennedy Strawbridge Grose Masterson Cave Highmore Hobson Abel Levey Rock Osman Austin Dinkins Robinson Cockrell Winston Leighton Robeson Williamson Peters Bailey Beryl Roberts Doyle Wilford Hamilton Kelly Fox Young Jillian Wesley Kerwin Jones Bowen Stirling Deane Gale Montgomery Ditchburn Gillis Frost Russell O'Connor Bennett Baxter Jackson Dinsmore Festing Gerry Keats Black Livingston Rock (name) Carpenter Graham Messenger Lovett Ray Patrick Roy White Bean Kimberley Gordon Henley Dannie Warren Bunker Reid Ochiltree (surname) Whitlock Matthews Lawton Pursell Hudson Webber Baker Shakespeare Peterson Holt Bartlett Adams O'Brien Hannig Wideman Broadbent Caven Alison Patterson Wright Atkinson Smith Fisher Henderson Armitage Conley Raymond Haigh Hughes Quinn Allingham Talbot Thompson Greenberg Deasy Lewis Kimber (name) Caskey Cohen Hart Jefferis Willis McNally Pipe Cooper April Head Lee Robin Crawley Armstrong Hallett Taylor Hogg Clayton Belson Deems Quinn Lawrence Guilfoyle Anderson Dawson Stewart McGlone Haig Dickinson Howard Edwards Brailsford Wade Richards Terry Herne (surname) Gay Large Ross Seabrook Faircloth Simpson King Newman Stone Jodie Gallagher Flack Jacobs Alexander Nicholson Davidson Courtnall Humphry Reynolds Sterling Bedser Hawtrey Foster Bridget Barker Barnes Litchfield (surname) Greenbury Goldberg Murphy Riley Finch Goldring Brandon Lawson Fleming Stevens Daniel Page Sawyer Cross Barrington Oxnam Sharp Miller Becks (surname) McCormick Grey Greenway King Burrows Torey Hemsvorts Hopkin Darnell Phelps Phillips Lincoln Duncan Osbaldeston (surname) Doyle Gibson Gavin Nowell Mancell Higman Fowler Shanley Ryan Allen Burns McGillivray McLene Beck Wallace Reed Krupa Christie Gardner Markham O'Byrne Potter Tolbert Meadowcroft Carroll Hopkins Chase Bushnell Quirk Coats Wood Samuel Oldrin Miles Whitfield Ruff (surname) Collins Freeman Brigham Borden Cave Holly Brinkley Clarke Miranda Stanley Ericson Stevenson Phinney Thomson Tyler Atwood Browner McGreevey Murnan Benjamin Lynn Michael McKenna Ferguson Mason Stock Kara Cook Troy Heyward Perry Edward Jewell english family name Moore Cobb Johnson Tucker (surname) Shaw Thomas Devon Wild Butler Brown Hacket Greenaway Little Blake Morrow Lattin Fearnley Avery Monroe Laughton Watson Burrough Foley Cox Singer Burke Amey Isaacs Terry Flower Levi Turner Leigh Hilton Humby Barcleycorn Alastair Sullivan O'Hara Griffith Sexton Casserly Bateman Nelson Gilding Gaisford Browne Beerbohm Archer Ward Tennant Blair Needleman McGrath Wilson Turner Jaden Carter Dean Rigsby Koch Karan Stern Robertson Hill Benson Haymond Lock Forbes-Robertson Morris Morrison Elliot Richardson Banks Thacher Franklin David Andrews Beaton Nash Chilton (surname) Walker Ambridge Griffin Brent Bryant Hoey Parker Cunningham Humphreys Vincent Ford Ellis Hiscock Hollings Joan Louie Rubin Lynch Dane Case Newton Cain Upton Diggs Stocks Starling Brooks Biggins Dalton Abbott Boyd Bird Hayward Gray Evans Rogers Carr McInnis Lloyd Creager Preston Davies Oates Phelan Palmer Baggett Painter Wallwork Cartmell Garrity West Bradley Harris Walpole Fenwick Wilde Penfold Macdonald Ball Folger (name) Williams Cooney Michele Campbell Virgil Clark Eaton Golden Owen Jayson Ruby Arden Snow Maclean Dummer (surname) Berryhill Hepburn Porter Hayward Hough (surname) Burney Cameron Spalding Grayson Berry Sparrow Wilk Brennan Spencer Milton Hornaday Walton Gilbert Harrison Bishop Bernstein Green Thatcher Attwell Johnston McGuire Munro Fuller Winter Murray Collier Myers Coode Aaron Hall Hayden Layton Wayne Wakefield Bush Stephens Baynes Keaveney Champney Canavan Price
Beerbohm, Fowler, Freeman, Wild, Johnston, Wallwork, Sparrow, Munro, Lawton and Phelps use West Slavic languages or English as language
Beerbohm Fowler Freeman Wild Johnston Wallwork Sparrow Munro Lawton Phelps
action filter_type
action union
action find_reverse
entity West Slavic languages
relation language of work or name
action find_reverse
entity English
relation language of work or name
type name
{'OR': [[{'concept': 'name'}, 'language of work or name', 'West Slavic languages'], [{'concept': 'name'}, 'language of work or name', 'English']]}
SELECT DISTINCT ?c WHERE { { { ?c property:language_of_work_or_name resource:English } UNION { ?c property:language_of_work_or_name resource:West_Slavic_languages } } . ?c rdf:type ontology:name }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P180
Q82799 Q17335294 Q838948
USER
Which names are demonstrated in max number of coats of arms or works of art ?
(c(Q17335294)|c(Q838948),P180,c(Q82799))
action argmax
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q17335294
action find_reverse_tuple_counts
relation P180
type Q82799
type Q838948
[[{'concept': 'Q17335294'}, {'concept': 'Q838948'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?x ) { SELECT DISTINCT ?y ( COUNT ( ?n ) AS ?z ) WHERE { { ?n property:P180 ?y . ?n rdf:type ontology:Q17335294 . ?y rdf:type ontology:Q82799 } UNION { ?n property:P180 ?y . ?y rdf:type ontology:Q82799 . ?n rdf:type ontology:Q838948 } } GROUP BY ?y } } . { SELECT DISTINCT ?t ( COUNT ( ?r ) AS ?i ) WHERE { { ?r property:P180 ?t . ?r rdf:type ontology:Q838948 . ?t rdf:type ontology:Q82799 } UNION { ?r property:P180 ?t . ?t rdf:type ontology:Q82799 . ?r rdf:type ontology:Q17335294 } } GROUP BY ?t } . FILTER ( ?i = ?x ) }
action argmax
action union
action find_reverse_tuple_counts
relation depicts
type name
type flag or coat of arms
action find_reverse_tuple_counts
relation depicts
type name
type work of art
[[{'concept': 'flag or coat of arms'}, {'concept': 'work of art'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?x ) { SELECT DISTINCT ?y ( COUNT ( ?n ) AS ?z ) WHERE { { ?n property:depicts ?y . ?n rdf:type ontology:flag_or_coat_of_arms . ?y rdf:type ontology:name } UNION { ?n property:depicts ?y . ?y rdf:type ontology:name . ?n rdf:type ontology:work_of_art } } GROUP BY ?y } } . { SELECT DISTINCT ?t ( COUNT ( ?r ) AS ?i ) WHERE { { ?r property:depicts ?t . ?r rdf:type ontology:work_of_art . ?t rdf:type ontology:name } UNION { ?r property:depicts ?t . ?t rdf:type ontology:name . ?r rdf:type ontology:flag_or_coat_of_arms } } GROUP BY ?t } . FILTER ( ?i = ?x ) }
[]
name flag or coat of arms work of art
Q726
SYSTEM
horse
Q726
(c(Q17335294)|c(Q838948),P180,c(Q82799))
action argmax
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q17335294
action find_reverse_tuple_counts
relation P180
type Q82799
type Q838948
[ANSWER] is demonstrated in max number of coats of arms or works of art
[[{'concept': 'Q17335294'}, {'concept': 'Q838948'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?x ) { SELECT DISTINCT ?y ( COUNT ( ?n ) AS ?z ) WHERE { { ?n property:P180 ?y . ?n rdf:type ontology:Q17335294 . ?y rdf:type ontology:Q82799 } UNION { ?n property:P180 ?y . ?y rdf:type ontology:Q82799 . ?n rdf:type ontology:Q838948 } } GROUP BY ?y } } . { SELECT DISTINCT ?t ( COUNT ( ?r ) AS ?i ) WHERE { { ?r property:P180 ?t . ?r rdf:type ontology:Q838948 . ?t rdf:type ontology:Q82799 } UNION { ?r property:P180 ?t . ?t rdf:type ontology:Q82799 . ?r rdf:type ontology:Q17335294 } } GROUP BY ?t } . FILTER ( ?i = ?x ) }
horse
Horse is demonstrated in max number of coats of arms or works of art
horse
action argmax
action union
action find_reverse_tuple_counts
relation depicts
type name
type flag or coat of arms
action find_reverse_tuple_counts
relation depicts
type name
type work of art
[[{'concept': 'flag or coat of arms'}, {'concept': 'work of art'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?x ) { SELECT DISTINCT ?y ( COUNT ( ?n ) AS ?z ) WHERE { { ?n property:depicts ?y . ?n rdf:type ontology:flag_or_coat_of_arms . ?y rdf:type ontology:name } UNION { ?n property:depicts ?y . ?y rdf:type ontology:name . ?n rdf:type ontology:work_of_art } } GROUP BY ?y } } . { SELECT DISTINCT ?t ( COUNT ( ?r ) AS ?i ) WHERE { { ?r property:depicts ?t . ?r rdf:type ontology:work_of_art . ?t rdf:type ontology:name } UNION { ?r property:depicts ?t . ?t rdf:type ontology:name . ?r rdf:type ontology:flag_or_coat_of_arms } } GROUP BY ?t } . FILTER ( ?i = ?x ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q82799 Q3305213 Q1792379
USER
Which names are demonstrated in around 2 paintings or art genres ?
(c(Q3305213)|c(Q1792379),P180,c(Q82799))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q82799
type Q1792379
value 2
[[{'concept': 'Q3305213'}, {'concept': 'Q1792379'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) ?g WHERE { VALUES ( ?r ) { ( ontology:Q3305213 ) ( ontology:Q1792379 ) } . ?d rdf:type ?r } GROUP BY ?g } . FILTER ( ?u = 2 ) }
action approx
action union
action find_reverse_tuple_counts
relation depicts
type name
type painting
action find_reverse_tuple_counts
relation depicts
type name
type art genre
value 2
[[{'concept': 'painting'}, {'concept': 'art genre'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) ?g WHERE { VALUES ( ?r ) { ( ontology:painting ) ( ontology:art_genre ) } . ?d rdf:type ?r } GROUP BY ?g } . FILTER ( ?u = 2 ) }
[]
name painting art genre
Q1807269 Q876933 Q152
SYSTEM
leek, magi, fish
Q13219075 Q134609 Q6453151 Q830 Q3736439 Q41692 Q3711329 Q732775 Q36940 Q1517781 Q7368 Q7369 Q2092297 Q11946202 Q2258881 Q4767951 Q16529344 Q24067392 Q713019 Q1807269 Q201251 Q8331 Q8335 Q846664 Q3116510 Q3537778 Q1865281 Q1367 Q1192868 Q9394 Q2734060 Q2495957 Q1953597 Q15629245 Q25894 Q1466321 Q43115 Q858243 Q876933 Q190294 Q7378 Q123120 Q214169 Q538906 Q308841 Q1360763 Q83931 Q9458574 Q152 Q5070208 Q859257 Q10968813
(c(Q3305213)|c(Q1792379),P180,c(Q82799))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q82799
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q82799
type Q1792379
value 2
[ANSWERS] are demonstrated in around 2 paintings or art genres
[[{'concept': 'Q3305213'}, {'concept': 'Q1792379'}], 'P180', {'concept': 'Q82799'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) ?g WHERE { VALUES ( ?r ) { ( ontology:Q3305213 ) ( ontology:Q1792379 ) } . ?d rdf:type ?r } GROUP BY ?g } . FILTER ( ?u = 2 ) }
octopus Cynara scolymus toad cattle duck mule wolf Partridge sugarcane shrimp Ovis aries dolphin eagle butterfly trout cattle goose Boy cannoneer leek peacock fox raven hawk frog donkeys whale monkey clam rabbit reed magpie slug lizard antelope Yellow jacket saint Tree squirrel magi mouflon elephant vulture pheasant thistle snail Scipio locust wasp fish kangaroo fly jay
Leek, magi and fish are demonstrated in around 2 paintings or art genres
leek magi fish
action approx
action union
action find_reverse_tuple_counts
relation depicts
type name
type painting
action find_reverse_tuple_counts
relation depicts
type name
type art genre
value 2
[[{'concept': 'painting'}, {'concept': 'art genre'}], 'depicts', {'concept': 'name'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) ?g WHERE { VALUES ( ?r ) { ( ontology:painting ) ( ontology:art_genre ) } . ?d rdf:type ?r } GROUP BY ?g } . FILTER ( ?u = 2 ) }
[]