Simple Question (Direct)
Simple Question
Q21756827
P702
Q863908
USER
Which nucleic acid sequence encodes gamma-glutamyl phosphate reductase    TTHA1928 ?
(Q21756827,P702,c(Q863908))
action filter_type
action find
entity Q21756827
relation P702
type Q863908
['Q21756827', 'P702', {'concept': 'Q863908'}]
SELECT DISTINCT ?o WHERE { resource:Q21756827 property:P702 ?o . ?o rdf:type ontology:Q863908 }
gamma-glutamyl phosphate reductase    TTHA1928
action filter_type
action find
entity gamma-glutamyl phosphate reductase    TTHA1928
relation encoded by
type nucleic acid sequence
['gamma-glutamyl phosphate reductase    TTHA1928', 'encoded by', {'concept': 'nucleic acid sequence'}]
SELECT DISTINCT ?o WHERE { resource:gamma-glutamyl_phosphate_reductase____TTHA1928 property:encoded_by ?o . ?o rdf:type ontology:nucleic_acid_sequence }
[]
nucleic acid sequence
Q21687445
SYSTEM
gamma-glutamyl phosphate reductase    TTHA1928
Q21687445
(Q21756827,P702,c(Q863908))
action filter_type
action find
entity Q21756827
relation P702
type Q863908
Gamma-glutamyl phosphate reductase TTHA1928 encodes gamma-glutamyl phosphate reductase TTHA1928
['Q21756827', 'P702', {'concept': 'Q863908'}]
SELECT DISTINCT ?o WHERE { resource:Q21756827 property:P702 ?o . ?o rdf:type ontology:Q863908 }
gamma-glutamyl phosphate reductase    TTHA1928
Gamma-glutamyl phosphate reductase TTHA1928 encodes gamma-glutamyl phosphate reductase TTHA1928
gamma-glutamyl phosphate reductase    TTHA1928
action filter_type
action find
entity gamma-glutamyl phosphate reductase    TTHA1928
relation encoded by
type nucleic acid sequence
['gamma-glutamyl phosphate reductase    TTHA1928', 'encoded by', {'concept': 'nucleic acid sequence'}]
SELECT DISTINCT ?o WHERE { resource:gamma-glutamyl_phosphate_reductase____TTHA1928 property:encoded_by ?o . ?o rdf:type ontology:nucleic_acid_sequence }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q21756827
P688
Q863908
USER
Which nucleic acid sequence encodes gamma-glutamyl phosphate reductase    TTHA1928 ?
(c(Q863908),P688,Q21756827)
action filter_type
action find_reverse
entity Q21756827
relation P688
type Q863908
[{'concept': 'Q863908'}, 'P688', 'Q21756827']
SELECT DISTINCT ?t WHERE { ?t property:P688 resource:Q21756827 . ?t rdf:type ontology:Q863908 }
gamma-glutamyl phosphate reductase    TTHA1928
action filter_type
action find_reverse
entity gamma-glutamyl phosphate reductase    TTHA1928
relation encodes
type nucleic acid sequence
[{'concept': 'nucleic acid sequence'}, 'encodes', 'gamma-glutamyl phosphate reductase    TTHA1928']
SELECT DISTINCT ?t WHERE { ?t property:encodes resource:gamma-glutamyl_phosphate_reductase____TTHA1928 . ?t rdf:type ontology:nucleic_acid_sequence }
[]
nucleic acid sequence
Q21687445
SYSTEM
gamma-glutamyl phosphate reductase    TTHA1928
Q21687445
(c(Q863908),P688,Q21756827)
action filter_type
action find_reverse
entity Q21756827
relation P688
type Q863908
Gamma-glutamyl phosphate reductase TTHA1928 encodes gamma-glutamyl phosphate reductase TTHA1928
[{'concept': 'Q863908'}, 'P688', 'Q21756827']
SELECT DISTINCT ?t WHERE { ?t property:P688 resource:Q21756827 . ?t rdf:type ontology:Q863908 }
gamma-glutamyl phosphate reductase    TTHA1928
Gamma-glutamyl phosphate reductase TTHA1928 encodes gamma-glutamyl phosphate reductase TTHA1928
gamma-glutamyl phosphate reductase    TTHA1928
action filter_type
action find_reverse
entity gamma-glutamyl phosphate reductase    TTHA1928
relation encodes
type nucleic acid sequence
[{'concept': 'nucleic acid sequence'}, 'encodes', 'gamma-glutamyl phosphate reductase    TTHA1928']
SELECT DISTINCT ?t WHERE { ?t property:encodes resource:gamma-glutamyl_phosphate_reductase____TTHA1928 . ?t rdf:type ontology:nucleic_acid_sequence }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q21687445
P703
Q16521
USER
Where is that nucleic acid sequence found ?
(Q21687445,P703,c(Q16521))
action filter_type
action find
entity Q21687445
relation P703
type Q16521
['Q21687445', 'P703', {'concept': 'Q16521'}]
SELECT DISTINCT ?p WHERE { resource:Q21687445 property:P703 ?p . ?p rdf:type ontology:Q16521 }
gamma-glutamyl phosphate reductase    TTHA1928
action filter_type
action find
entity gamma-glutamyl phosphate reductase    TTHA1928
relation found in taxon
type taxon
['gamma-glutamyl phosphate reductase    TTHA1928', 'found in taxon', {'concept': 'taxon'}]
SELECT DISTINCT ?p WHERE { resource:gamma-glutamyl_phosphate_reductase____TTHA1928 property:found_in_taxon ?p . ?p rdf:type ontology:taxon }
[]
taxon
Q21065233
SYSTEM
Thermus thermophilus HB8
Q21065233
(Q21687445,P703,c(Q16521))
action filter_type
action find
entity Q21687445
relation P703
type Q16521
That nucleic acid sequence is found in [ANSWER]
['Q21687445', 'P703', {'concept': 'Q16521'}]
SELECT DISTINCT ?p WHERE { resource:Q21687445 property:P703 ?p . ?p rdf:type ontology:Q16521 }
Thermus thermophilus HB8
That nucleic acid sequence is found in Thermus thermophilus HB8
Thermus thermophilus HB8
action filter_type
action find
entity gamma-glutamyl phosphate reductase    TTHA1928
relation found in taxon
type taxon
['gamma-glutamyl phosphate reductase    TTHA1928', 'found in taxon', {'concept': 'taxon'}]
SELECT DISTINCT ?p WHERE { resource:gamma-glutamyl_phosphate_reductase____TTHA1928 property:found_in_taxon ?p . ?p rdf:type ontology:taxon }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q23397595
Q16521
USER
And what about hypothetical protein    Smed_3391?
(Q23397595,P703,c(Q16521))
action filter_type
action find
entity Q23397595
relation P703
type Q16521
['Q23397595', 'P703', {'concept': 'Q16521'}]
SELECT DISTINCT ?w WHERE { resource:Q23397595 property:P703 ?w . ?w rdf:type ontology:Q16521 }
hypothetical protein    Smed_3391
action filter_type
action find
entity hypothetical protein    Smed_3391
relation found in taxon
type taxon
['hypothetical protein    Smed_3391', 'found in taxon', {'concept': 'taxon'}]
SELECT DISTINCT ?w WHERE { resource:hypothetical_protein____Smed_3391 property:found_in_taxon ?w . ?w rdf:type ontology:taxon }
[]
taxon
Q21398749
SYSTEM
Sinorhizobium medicae WSM419
Q21398749
(Q23397595,P703,c(Q16521))
action filter_type
action find
entity Q23397595
relation P703
type Q16521
[ANSWER]
['Q23397595', 'P703', {'concept': 'Q16521'}]
SELECT DISTINCT ?w WHERE { resource:Q23397595 property:P703 ?w . ?w rdf:type ontology:Q16521 }
Sinorhizobium medicae WSM419
Sinorhizobium medicae WSM419
action filter_type
action find
entity hypothetical protein    Smed_3391
relation found in taxon
type taxon
['hypothetical protein    Smed_3391', 'found in taxon', {'concept': 'taxon'}]
SELECT DISTINCT ?w WHERE { resource:hypothetical_protein____Smed_3391 property:found_in_taxon ?w . ?w rdf:type ontology:taxon }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q21398749 Q23514106
P703
Q181394
USER
Is bacitracin transport permease BCRB    BC4533 a part of the taxon that one ?
(Q23514106,P703,Q21398749)
action is_in
entity Q23514106
action find
entity Q21398749
relation P703
['Q23514106', 'P703', 'Q21398749']
ASK WHERE { resource:Q21398749 property:P703 resource:Q23514106 }
Sinorhizobium medicae WSM419 bacitracin transport permease BCRB    BC4533
action is_in
entity bacitracin transport permease BCRB    BC4533
action find
entity Sinorhizobium medicae WSM419
relation found in taxon
['bacitracin transport permease BCRB    BC4533', 'found in taxon', 'Sinorhizobium medicae WSM419']
ASK WHERE { resource:Sinorhizobium_medicae_WSM419 property:found_in_taxon resource:bacitracin_transport_permease_BCRB____BC4533 }
[]
nutrient
SYSTEM
NO
(Q23514106,P703,Q21398749)
action is_in
entity Q23514106
action find
entity Q21398749
relation P703
[ANSWER]
['Q23514106', 'P703', 'Q21398749']
ASK WHERE { resource:Q21398749 property:P703 resource:Q23514106 }
No
action is_in
entity bacitracin transport permease BCRB    BC4533
action find
entity Sinorhizobium medicae WSM419
relation found in taxon
['bacitracin transport permease BCRB    BC4533', 'found in taxon', 'Sinorhizobium medicae WSM419']
ASK WHERE { resource:Sinorhizobium_medicae_WSM419 property:found_in_taxon resource:bacitracin_transport_permease_BCRB____BC4533 }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P180
Q16521 Q386724
USER
Which works depict exactly 1 taxon ?
(c(Q386724),P180,c(Q16521))
action equal
action find_tuple_counts
relation P180
type Q386724
type Q16521
value 1
[{'concept': 'Q386724'}, 'P180', {'concept': 'Q16521'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?p ) AS ?w ) WHERE { ?r property:P180 ?p . ?r rdf:type ontology:Q386724 . ?p rdf:type ontology:Q16521 } GROUP BY ?r } . FILTER ( ?w = 1 ) }
action equal
action find_tuple_counts
relation depicts
type work
type taxon
value 1
[{'concept': 'work'}, 'depicts', {'concept': 'taxon'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?p ) AS ?w ) WHERE { ?r property:depicts ?p . ?r rdf:type ontology:work . ?p rdf:type ontology:taxon } GROUP BY ?r } . FILTER ( ?w = 1 ) }
[]
taxon work
Q20668010 Q20667952 Q20035907
SYSTEM
Funerary banquet, Hunt scene, known as "Alexander's hunt", Sacrifice of a goat
Q20668010 Q20667952 Q20035907 Q20012272
(c(Q386724),P180,c(Q16521))
action equal
action find_tuple_counts
relation P180
type Q386724
type Q16521
value 1
[ANSWERS] depict exactly 1 taxon
[{'concept': 'Q386724'}, 'P180', {'concept': 'Q16521'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?p ) AS ?w ) WHERE { ?r property:P180 ?p . ?r rdf:type ontology:Q386724 . ?p rdf:type ontology:Q16521 } GROUP BY ?r } . FILTER ( ?w = 1 ) }
Funerary banquet Hunt scene, known as "Alexander's hunt" Sacrifice of a goat Panther
Funerary banquet, Hunt scene, known as "Alexander's hunt" and Sacrifice of a goat depict exactly 1 taxon
Funerary banquet Hunt scene, known as "Alexander's hunt" Sacrifice of a goat
action equal
action find_tuple_counts
relation depicts
type work
type taxon
value 1
[{'concept': 'work'}, 'depicts', {'concept': 'taxon'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?p ) AS ?w ) WHERE { ?r property:depicts ?p . ?r rdf:type ontology:work . ?p rdf:type ontology:taxon } GROUP BY ?r } . FILTER ( ?w = 1 ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q20667952
P195
Q2668072
USER
Which collection contains that work in it ?
(Q20667952,P195,c(Q2668072))
action filter_type
action find
entity Q20667952
relation P195
type Q2668072
['Q20667952', 'P195', {'concept': 'Q2668072'}]
SELECT DISTINCT ?n WHERE { resource:Q20667952 property:P195 ?n . ?n rdf:type ontology:Q2668072 }
Hunt scene, known as "Alexander's hunt"
action filter_type
action find
entity Hunt scene, known as "Alexander's hunt"
relation collection
type collection
['Hunt scene, known as "Alexander\'s hunt"', 'collection', {'concept': 'collection'}]
SELECT DISTINCT ?n WHERE { resource:Hunt_scene,_known_as_"Alexander's_hunt" property:collection ?n . ?n rdf:type ontology:collection }
[]
collection
Clarification for simple ques.
Q20035907
SYSTEM
Did you mean Sacrifice of a goat ?
Q20668010 Q20667952 Q20035907
(Q20668010,P195,c(Q2668072)) (Q20667952,P195,c(Q2668072)) (Q20035907,P195,c(Q2668072))
[ANSWER]
['Q20668010', 'P195', {'concept': 'Q2668072'}] ['Q20667952', 'P195', {'concept': 'Q2668072'}] ['Q20035907', 'P195', {'concept': 'Q2668072'}]
SELECT DISTINCT ?n WHERE { resource:Q20667952 property:P195 ?n . ?n rdf:type ontology:Q2668072 }
Funerary banquet Hunt scene, known as "Alexander's hunt" Sacrifice of a goat
Did you mean Sacrifice of a goat ?
Sacrifice of a goat
['Funerary banquet', 'collection', {'concept': 'collection'}] ['Hunt scene, known as "Alexander\'s hunt"', 'collection', {'concept': 'collection'}] ['Sacrifice of a goat', 'collection', {'concept': 'collection'}]
SELECT DISTINCT ?n WHERE { resource:Hunt_scene,_known_as_"Alexander's_hunt" property:collection ?n . ?n rdf:type ontology:collection }
[]
Simple Question (Coreferenced)
USER
No, I meant Hunt scene, known as "Alexander's hunt". Could you tell me the answer for that?
(Q20667952,P195,c(Q2668072))
Q20667952
['Q20667952', 'P195', {'concept': 'Q2668072'}]
['Hunt scene, known as "Alexander\'s hunt"', 'collection', {'concept': 'collection'}]
[]
Q3044747
SYSTEM
Department of Greek, Etruscan, and Roman Antiquities of the Louvre
Q3044747
(Q20667952,P195,c(Q2668072))
action filter_type
action find
entity Q20667952
relation P195
type Q2668072
[ANSWER] contains that work in it
['Q20667952', 'P195', {'concept': 'Q2668072'}]
SELECT DISTINCT ?n WHERE { resource:Q20667952 property:P195 ?n . ?n rdf:type ontology:Q2668072 }
Department of Greek, Etruscan, and Roman Antiquities of the Louvre
Department of Greek, Etruscan, and Roman Antiquities of the Louvre contains that work in it
Department of Greek, Etruscan, and Roman Antiquities of the Louvre
action filter_type
action find
entity Hunt scene, known as "Alexander's hunt"
relation collection
type collection
['Hunt scene, known as "Alexander\'s hunt"', 'collection', {'concept': 'collection'}]
SELECT DISTINCT ?n WHERE { resource:Hunt_scene,_known_as_"Alexander's_hunt" property:collection ?n . ?n rdf:type ontology:collection }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q20440818
Q2668072
USER
And also tell me about Valdemar den Store bliver forbundet i Absalons moders hus, hvor han har søgt tilflugt efter overfaldet i Roskilde?
(Q20440818,P195,c(Q2668072))
action filter_type
action find
entity Q20440818
relation P195
type Q2668072
['Q20440818', 'P195', {'concept': 'Q2668072'}]
SELECT DISTINCT ?l WHERE { resource:Q20440818 property:P195 ?l . ?l rdf:type ontology:Q2668072 }
Valdemar den Store bliver forbundet i Absalons moders hus, hvor han har søgt tilflugt efter overfaldet i Roskilde
action filter_type
action find
entity Valdemar den Store bliver forbundet i Absalons moders hus, hvor han har søgt tilflugt efter overfaldet i Roskilde
relation collection
type collection
['Valdemar den Store bliver forbundet i Absalons moders hus, hvor han har søgt tilflugt efter overfaldet i Roskilde', 'collection', {'concept': 'collection'}]
SELECT DISTINCT ?l WHERE { resource:Valdemar_den_Store_bliver_forbundet_i_Absalons_moders_hus,_hvor_han_har_søgt_tilflugt_efter_overfaldet_i_Roskilde property:collection ?l . ?l rdf:type ontology:collection }
[]
collection
Q671384
SYSTEM
Statens Museum for Kunst
Q671384
(Q20440818,P195,c(Q2668072))
action filter_type
action find
entity Q20440818
relation P195
type Q2668072
Tell me about Valdemar den Store bliver forbundet i Absalons moders hus , hvor han har søgt tilflugt efter overfaldet i Roskilde also at [ANSWER] And
['Q20440818', 'P195', {'concept': 'Q2668072'}]
SELECT DISTINCT ?l WHERE { resource:Q20440818 property:P195 ?l . ?l rdf:type ontology:Q2668072 }
Statens Museum for Kunst
Tell me about Valdemar den Store bliver forbundet i Absalons moders hus , hvor han har søgt tilflugt efter overfaldet i Roskilde also at Statens Museum for Kunst And
Statens Museum for Kunst
action filter_type
action find
entity Valdemar den Store bliver forbundet i Absalons moders hus, hvor han har søgt tilflugt efter overfaldet i Roskilde
relation collection
type collection
['Valdemar den Store bliver forbundet i Absalons moders hus, hvor han har søgt tilflugt efter overfaldet i Roskilde', 'collection', {'concept': 'collection'}]
SELECT DISTINCT ?l WHERE { resource:Valdemar_den_Store_bliver_forbundet_i_Absalons_moders_hus,_hvor_han_har_søgt_tilflugt_efter_overfaldet_i_Roskilde property:collection ?l . ?l rdf:type ontology:collection }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q20667952
P180
Q11460 Q12737077
USER
How many clothings and occupations are demonstrated in Hunt scene, known as "Alexander's hunt" ?
(Q20667952,P180,c(Q11460)) (Q20667952,P180,c(Q12737077))
action count
action union
action filter_type
action find
entity Q20667952
relation P180
type Q11460
action filter_type
action find
entity Q20667952
relation P180
type Q12737077
['Q20667952', 'P180', {'concept': 'Q11460'}] ['Q20667952', 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) WHERE { VALUES ( ?k ) { ( ontology:Q11460 ) ( ontology:Q12737077 ) } . ?p rdf:type ?k }
Hunt scene, known as "Alexander's hunt"
action count
action union
action filter_type
action find
entity Hunt scene, known as "Alexander's hunt"
relation depicts
type clothing
action filter_type
action find
entity Hunt scene, known as "Alexander's hunt"
relation depicts
type occupation
['Hunt scene, known as "Alexander\'s hunt"', 'depicts', {'concept': 'clothing'}] ['Hunt scene, known as "Alexander\'s hunt"', 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) WHERE { VALUES ( ?k ) { ( ontology:clothing ) ( ontology:occupation ) } . ?p rdf:type ?k }
[]
clothing occupation
SYSTEM
1 clothings and 1 occupations
Q516992 Q2730732
(Q20667952,P180,c(Q11460)) (Q20667952,P180,c(Q12737077))
action count
action union
action filter_type
action find
entity Q20667952
relation P180
type Q11460
action filter_type
action find
entity Q20667952
relation P180
type Q12737077
[ANSWER]
['Q20667952', 'P180', {'concept': 'Q11460'}] ['Q20667952', 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) WHERE { VALUES ( ?k ) { ( ontology:Q11460 ) ( ontology:Q12737077 ) } . ?p rdf:type ?k }
cloak equestrian
1 clothings and 1 occupations
action count
action union
action filter_type
action find
entity Hunt scene, known as "Alexander's hunt"
relation depicts
type clothing
action filter_type
action find
entity Hunt scene, known as "Alexander's hunt"
relation depicts
type occupation
['Hunt scene, known as "Alexander\'s hunt"', 'depicts', {'concept': 'clothing'}] ['Hunt scene, known as "Alexander\'s hunt"', 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) WHERE { VALUES ( ?k ) { ( ontology:clothing ) ( ontology:occupation ) } . ?p rdf:type ?k }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q671384
P17
Q1048835
USER
How many political territories are Statens Museum for Kunst a part of ?
(Q671384,P17,c(Q1048835))
action count
action filter_type
action find
entity Q671384
relation P17
type Q1048835
['Q671384', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) WHERE { resource:Q671384 property:P17 ?z . ?z rdf:type ontology:Q1048835 }
Statens Museum for Kunst
action count
action filter_type
action find
entity Statens Museum for Kunst
relation country
type political territorial entity
['Statens Museum for Kunst', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) WHERE { resource:Statens_Museum_for_Kunst property:country ?z . ?z rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
1
Q35
(Q671384,P17,c(Q1048835))
action count
action filter_type
action find
entity Q671384
relation P17
type Q1048835
[ANSWER]
['Q671384', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) WHERE { resource:Q671384 property:P17 ?z . ?z rdf:type ontology:Q1048835 }
Denmark
1
action count
action filter_type
action find
entity Statens Museum for Kunst
relation country
type political territorial entity
['Statens Museum for Kunst', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?n ) WHERE { resource:Statens_Museum_for_Kunst property:country ?z . ?z rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q28034
Q1048835
USER
And also tell me about Horstedt?
(Q28034,P17,c(Q1048835))
action count
action filter_type
action find
entity Q28034
relation P17
type Q1048835
['Q28034', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) WHERE { resource:Q28034 property:P17 ?y . ?y rdf:type ontology:Q1048835 }
Horstedt
action count
action filter_type
action find
entity Horstedt
relation country
type political territorial entity
['Horstedt', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) WHERE { resource:Horstedt property:country ?y . ?y rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
1
(Q28034,P17,c(Q1048835))
action count
action filter_type
action find
entity Q28034
relation P17
type Q1048835
[ANSWER]
['Q28034', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) WHERE { resource:Q28034 property:P17 ?y . ?y rdf:type ontology:Q1048835 }
1
action count
action filter_type
action find
entity Horstedt
relation country
type political territorial entity
['Horstedt', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) WHERE { resource:Horstedt property:country ?y . ?y rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P629
Q234460 Q7725634 Q386724
USER
Which works are an edition or translation of max number of texts or literary works ?
(c(Q386724),P629,c(Q234460)|c(Q7725634))
action argmax
action union
action find_tuple_counts
relation P629
type Q386724
type Q234460
action find_tuple_counts
relation P629
type Q386724
type Q7725634
[{'concept': 'Q386724'}, 'P629', [{'concept': 'Q234460'}, {'concept': 'Q7725634'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MAX ( ?g ) AS ?i ) { SELECT DISTINCT ?j ( COUNT ( ?q ) AS ?g ) WHERE { { ?j property:P629 ?q . ?j rdf:type ontology:Q386724 . ?q rdf:type ontology:Q234460 } UNION { ?j property:P629 ?q . ?j rdf:type ontology:Q386724 . ?q rdf:type ontology:Q7725634 } } GROUP BY ?j } } . { SELECT DISTINCT ?h ( COUNT ( ?o ) AS ?c ) WHERE { { ?h property:P629 ?o . ?h rdf:type ontology:Q386724 . ?o rdf:type ontology:Q234460 } UNION { ?h property:P629 ?o . ?h rdf:type ontology:Q386724 . ?o rdf:type ontology:Q7725634 } } GROUP BY ?h } . FILTER ( ?c = ?i ) }
action argmax
action union
action find_tuple_counts
relation edition or translation of
type work
type text
action find_tuple_counts
relation edition or translation of
type work
type literary work
[{'concept': 'work'}, 'edition or translation of', [{'concept': 'text'}, {'concept': 'literary work'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MAX ( ?g ) AS ?i ) { SELECT DISTINCT ?j ( COUNT ( ?q ) AS ?g ) WHERE { { ?j property:edition_or_translation_of ?q . ?j rdf:type ontology:work . ?q rdf:type ontology:text } UNION { ?j property:edition_or_translation_of ?q . ?j rdf:type ontology:work . ?q rdf:type ontology:literary_work } } GROUP BY ?j } } . { SELECT DISTINCT ?h ( COUNT ( ?o ) AS ?c ) WHERE { { ?h property:edition_or_translation_of ?o . ?h rdf:type ontology:work . ?o rdf:type ontology:text } UNION { ?h property:edition_or_translation_of ?o . ?h rdf:type ontology:work . ?o rdf:type ontology:literary_work } } GROUP BY ?h } . FILTER ( ?c = ?i ) }
[]
text literary work work
Q29334
SYSTEM
Septuagint
Q29334
(c(Q386724),P629,c(Q234460)|c(Q7725634))
action argmax
action union
action find_tuple_counts
relation P629
type Q386724
type Q234460
action find_tuple_counts
relation P629
type Q386724
type Q7725634
[ANSWER] is an edition or translation of max number of texts or literary works
[{'concept': 'Q386724'}, 'P629', [{'concept': 'Q234460'}, {'concept': 'Q7725634'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MAX ( ?g ) AS ?i ) { SELECT DISTINCT ?j ( COUNT ( ?q ) AS ?g ) WHERE { { ?j property:P629 ?q . ?j rdf:type ontology:Q386724 . ?q rdf:type ontology:Q234460 } UNION { ?j property:P629 ?q . ?j rdf:type ontology:Q386724 . ?q rdf:type ontology:Q7725634 } } GROUP BY ?j } } . { SELECT DISTINCT ?h ( COUNT ( ?o ) AS ?c ) WHERE { { ?h property:P629 ?o . ?h rdf:type ontology:Q386724 . ?o rdf:type ontology:Q234460 } UNION { ?h property:P629 ?o . ?h rdf:type ontology:Q386724 . ?o rdf:type ontology:Q7725634 } } GROUP BY ?h } . FILTER ( ?c = ?i ) }
Septuagint
Septuagint is an edition or translation of max number of texts or literary works
Septuagint
action argmax
action union
action find_tuple_counts
relation edition or translation of
type work
type text
action find_tuple_counts
relation edition or translation of
type work
type literary work
[{'concept': 'work'}, 'edition or translation of', [{'concept': 'text'}, {'concept': 'literary work'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MAX ( ?g ) AS ?i ) { SELECT DISTINCT ?j ( COUNT ( ?q ) AS ?g ) WHERE { { ?j property:edition_or_translation_of ?q . ?j rdf:type ontology:work . ?q rdf:type ontology:text } UNION { ?j property:edition_or_translation_of ?q . ?j rdf:type ontology:work . ?q rdf:type ontology:literary_work } } GROUP BY ?j } } . { SELECT DISTINCT ?h ( COUNT ( ?o ) AS ?c ) WHERE { { ?h property:edition_or_translation_of ?o . ?h rdf:type ontology:work . ?o rdf:type ontology:text } UNION { ?h property:edition_or_translation_of ?o . ?h rdf:type ontology:work . ?o rdf:type ontology:literary_work } } GROUP BY ?h } . FILTER ( ?c = ?i ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q20667952
P186
Q8063
USER
Which rock is used to craft Hunt scene, known as "Alexander's hunt" ?
(Q20667952,P186,c(Q8063))
action filter_type
action find
entity Q20667952
relation P186
type Q8063
['Q20667952', 'P186', {'concept': 'Q8063'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q8063 . resource:Q20667952 property:P186 ?j }
Hunt scene, known as "Alexander's hunt"
action filter_type
action find
entity Hunt scene, known as "Alexander's hunt"
relation material used
type rock
['Hunt scene, known as "Alexander\'s hunt"', 'material used', {'concept': 'rock'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:rock . resource:Hunt_scene,_known_as_"Alexander's_hunt" property:material_used ?j }
[]
rock
Q40861
SYSTEM
marble
Q40861
(Q20667952,P186,c(Q8063))
action filter_type
action find
entity Q20667952
relation P186
type Q8063
[ANSWER] is used to craft Hunt scene, known as "Alexander's hunt"
['Q20667952', 'P186', {'concept': 'Q8063'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q8063 . resource:Q20667952 property:P186 ?j }
marble
Marble is used to craft Hunt scene, known as "Alexander's hunt"
marble
action filter_type
action find
entity Hunt scene, known as "Alexander's hunt"
relation material used
type rock
['Hunt scene, known as "Alexander\'s hunt"', 'material used', {'concept': 'rock'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:rock . resource:Hunt_scene,_known_as_"Alexander's_hunt" property:material_used ?j }
[]