Simple Question (Direct)
Simple Question
Q5644331
P364
Q34770
USER
Which language was used originally for the creation of Hamburger... The Motion Picture ?
(Q5644331,P364,c(Q34770))
action filter_type
action find
entity Q5644331
relation P364
type Q34770
['Q5644331', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?k WHERE { resource:Q5644331 property:P364 ?k . ?k rdf:type ontology:Q34770 }
Hamburger... The Motion Picture
action filter_type
action find
entity Hamburger... The Motion Picture
relation original language of work
type language
['Hamburger... The Motion Picture', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?k WHERE { resource:Hamburger..._The_Motion_Picture property:original_language_of_work ?k . ?k rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q5644331,P364,c(Q34770))
action filter_type
action find
entity Q5644331
relation P364
type Q34770
[ANSWER] was used originally for the creation of Hamburger... The Motion Picture
['Q5644331', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?k WHERE { resource:Q5644331 property:P364 ?k . ?k rdf:type ontology:Q34770 }
English
English was used originally for the creation of Hamburger... The Motion Picture
English
action filter_type
action find
entity Hamburger... The Motion Picture
relation original language of work
type language
['Hamburger... The Motion Picture', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?k WHERE { resource:Hamburger..._The_Motion_Picture property:original_language_of_work ?k . ?k rdf:type ontology:language }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1860
P2439
Q49848
USER
Which documents have a correspondence with the language that one ?
(c(Q49848),P2439,Q1860)
action filter_type
action find_reverse
entity Q1860
relation P2439
type Q49848
[{'concept': 'Q49848'}, 'P2439', 'Q1860']
SELECT DISTINCT ?r WHERE { ?r property:P2439 resource:Q1860 . ?r rdf:type ontology:Q49848 }
English
action filter_type
action find_reverse
entity English
relation language
type document
[{'concept': 'document'}, 'language', 'English']
SELECT DISTINCT ?r WHERE { ?r property:language resource:English . ?r rdf:type ontology:document }
[]
document
Q27861416 Q27861464 Q27861472
SYSTEM
CIPA DC-007-2009 Multi-Picture Format, eCH-0165 SIARD Format Specification, version 1.0, eCH-0165 SIARD Format Specification, version 2.0
Q27861416 Q27861464 Q27861472
(c(Q49848),P2439,Q1860)
action filter_type
action find_reverse
entity Q1860
relation P2439
type Q49848
[ANSWERS]
[{'concept': 'Q49848'}, 'P2439', 'Q1860']
SELECT DISTINCT ?r WHERE { ?r property:P2439 resource:Q1860 . ?r rdf:type ontology:Q49848 }
CIPA DC-007-2009 Multi-Picture Format eCH-0165 SIARD Format Specification, version 1.0 eCH-0165 SIARD Format Specification, version 2.0
CIPA DC-007-2009 Multi-Picture Format, eCH-0165 SIARD Format Specification, version 1.0 and eCH-0165 SIARD Format Specification, version 2.0 have a correspondence with the language that one
CIPA DC-007-2009 Multi-Picture Format eCH-0165 SIARD Format Specification, version 1.0 eCH-0165 SIARD Format Specification, version 2.0
action filter_type
action find_reverse
entity English
relation language
type document
[{'concept': 'document'}, 'language', 'English']
SELECT DISTINCT ?r WHERE { ?r property:language resource:English . ?r rdf:type ontology:document }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1860
P361
Q5962346
USER
Which classification schemes are English a part of ?
(Q1860,P361,c(Q5962346))
action filter_type
action find
entity Q1860
relation P361
type Q5962346
['Q1860', 'P361', {'concept': 'Q5962346'}]
SELECT DISTINCT ?o WHERE { resource:Q1860 property:P361 ?o . ?o rdf:type ontology:Q5962346 }
English
action filter_type
action find
entity English
relation part of
type classification scheme
['English', 'part of', {'concept': 'classification scheme'}]
SELECT DISTINCT ?o WHERE { resource:English property:part_of ?o . ?o rdf:type ontology:classification_scheme }
[]
classification scheme
Q1346342 Q5329170
SYSTEM
Anglic languages, Anglo-Frisian languages
Q1346342 Q5329170
(Q1860,P361,c(Q5962346))
action filter_type
action find
entity Q1860
relation P361
type Q5962346
Are [ANSWERS] are English a part of
['Q1860', 'P361', {'concept': 'Q5962346'}]
SELECT DISTINCT ?o WHERE { resource:Q1860 property:P361 ?o . ?o rdf:type ontology:Q5962346 }
Anglic languages Anglo-Frisian languages
Are Anglic languages and Anglo-Frisian languages are English a part of
Anglic languages Anglo-Frisian languages
action filter_type
action find
entity English
relation part of
type classification scheme
['English', 'part of', {'concept': 'classification scheme'}]
SELECT DISTINCT ?o WHERE { resource:English property:part_of ?o . ?o rdf:type ontology:classification_scheme }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q9091
Q5962346
USER
And how about Belarusian?
(Q9091,P361,c(Q5962346))
action filter_type
action find
entity Q9091
relation P361
type Q5962346
['Q9091', 'P361', {'concept': 'Q5962346'}]
SELECT DISTINCT ?p WHERE { resource:Q9091 property:P361 ?p . ?p rdf:type ontology:Q5962346 }
Belarusian
action filter_type
action find
entity Belarusian
relation part of
type classification scheme
['Belarusian', 'part of', {'concept': 'classification scheme'}]
SELECT DISTINCT ?p WHERE { resource:Belarusian property:part_of ?p . ?p rdf:type ontology:classification_scheme }
[]
classification scheme
Q144713 Q147356
SYSTEM
East Slavic languages, Balto-Slavic languages
Q144713 Q147356
(Q9091,P361,c(Q5962346))
action filter_type
action find
entity Q9091
relation P361
type Q5962346
[ANSWERS]
['Q9091', 'P361', {'concept': 'Q5962346'}]
SELECT DISTINCT ?p WHERE { resource:Q9091 property:P361 ?p . ?p rdf:type ontology:Q5962346 }
East Slavic languages Balto-Slavic languages
East Slavic languages Balto-Slavic languages
action filter_type
action find
entity Belarusian
relation part of
type classification scheme
['Belarusian', 'part of', {'concept': 'classification scheme'}]
SELECT DISTINCT ?p WHERE { resource:Belarusian property:part_of ?p . ?p rdf:type ontology:classification_scheme }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q1346342 Q14911869
P361
Q2996394
USER
How many biological processes are a component of Anglic languages or multicellular organism reproduction ?
(c(Q2996394),P361,Q1346342) (c(Q2996394),P361,Q14911869)
action count
action union
action filter_type
action find_reverse
entity Q1346342
relation P361
type Q2996394
action filter_type
action find_reverse
entity Q14911869
relation P361
type Q2996394
[{'concept': 'Q2996394'}, 'P361', 'Q1346342'] [{'concept': 'Q2996394'}, 'P361', 'Q14911869']
SELECT DISTINCT ( COUNT ( ?m ) AS ?p ) WHERE { { ?m property:P361 resource:Q14911869 . ?m rdf:type ontology:Q2996394 } UNION { ?m property:P361 resource:Q1346342 . ?m rdf:type ontology:Q2996394 } }
Anglic languages multicellular organism reproduction
action count
action union
action filter_type
action find_reverse
entity Anglic languages
relation part of
type biological process
action filter_type
action find_reverse
entity multicellular organism reproduction
relation part of
type biological process
[{'concept': 'biological process'}, 'part of', 'Anglic languages'] [{'concept': 'biological process'}, 'part of', 'multicellular organism reproduction']
SELECT DISTINCT ( COUNT ( ?m ) AS ?p ) WHERE { { ?m property:part_of resource:multicellular_organism_reproduction . ?m rdf:type ontology:biological_process } UNION { ?m property:part_of resource:Anglic_languages . ?m rdf:type ontology:biological_process } }
[]
biological process
SYSTEM
2
Q22294630 Q14863654
(c(Q2996394),P361,Q1346342) (c(Q2996394),P361,Q14911869)
action count
action union
action filter_type
action find_reverse
entity Q1346342
relation P361
type Q2996394
action filter_type
action find_reverse
entity Q14911869
relation P361
type Q2996394
[ANSWER]
[{'concept': 'Q2996394'}, 'P361', 'Q1346342'] [{'concept': 'Q2996394'}, 'P361', 'Q14911869']
SELECT DISTINCT ( COUNT ( ?m ) AS ?p ) WHERE { { ?m property:P361 resource:Q14911869 . ?m rdf:type ontology:Q2996394 } UNION { ?m property:P361 resource:Q1346342 . ?m rdf:type ontology:Q2996394 } }
fusome organization multicellular organismal reproductive process
2
action count
action union
action filter_type
action find_reverse
entity Anglic languages
relation part of
type biological process
action filter_type
action find_reverse
entity multicellular organism reproduction
relation part of
type biological process
[{'concept': 'biological process'}, 'part of', 'Anglic languages'] [{'concept': 'biological process'}, 'part of', 'multicellular organism reproduction']
SELECT DISTINCT ( COUNT ( ?m ) AS ?p ) WHERE { { ?m property:part_of resource:multicellular_organism_reproduction . ?m rdf:type ontology:biological_process } UNION { ?m property:part_of resource:Anglic_languages . ?m rdf:type ontology:biological_process } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q1860 Q24476154
P361
Q5962346
USER
How many classification schemes are English or Page from the Sketchbook with Figure Studies a portion of ?
(Q1860,P361,c(Q5962346)) (Q24476154,P361,c(Q5962346))
action count
action union
action filter_type
action find
entity Q1860
relation P361
type Q5962346
action filter_type
action find
entity Q24476154
relation P361
type Q5962346
['Q1860', 'P361', {'concept': 'Q5962346'}] ['Q24476154', 'P361', {'concept': 'Q5962346'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?v ) WHERE { { ?x rdf:type ontology:Q5962346 . resource:Q1860 property:P361 ?x } UNION { resource:Q24476154 property:P361 ?x . ?x rdf:type ontology:Q5962346 } }
English Page from the Sketchbook with Figure Studies
action count
action union
action filter_type
action find
entity English
relation part of
type classification scheme
action filter_type
action find
entity Page from the Sketchbook with Figure Studies
relation part of
type classification scheme
['English', 'part of', {'concept': 'classification scheme'}] ['Page from the Sketchbook with Figure Studies', 'part of', {'concept': 'classification scheme'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?v ) WHERE { { ?x rdf:type ontology:classification_scheme . resource:English property:part_of ?x } UNION { resource:Page_from_the_Sketchbook_with_Figure_Studies property:part_of ?x . ?x rdf:type ontology:classification_scheme } }
[]
classification scheme
SYSTEM
2
Q1346342 Q5329170
(Q1860,P361,c(Q5962346)) (Q24476154,P361,c(Q5962346))
action count
action union
action filter_type
action find
entity Q1860
relation P361
type Q5962346
action filter_type
action find
entity Q24476154
relation P361
type Q5962346
[ANSWER]
['Q1860', 'P361', {'concept': 'Q5962346'}] ['Q24476154', 'P361', {'concept': 'Q5962346'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?v ) WHERE { { ?x rdf:type ontology:Q5962346 . resource:Q1860 property:P361 ?x } UNION { resource:Q24476154 property:P361 ?x . ?x rdf:type ontology:Q5962346 } }
Anglic languages Anglo-Frisian languages
2
action count
action union
action filter_type
action find
entity English
relation part of
type classification scheme
action filter_type
action find
entity Page from the Sketchbook with Figure Studies
relation part of
type classification scheme
['English', 'part of', {'concept': 'classification scheme'}] ['Page from the Sketchbook with Figure Studies', 'part of', {'concept': 'classification scheme'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?v ) WHERE { { ?x rdf:type ontology:classification_scheme . resource:English property:part_of ?x } UNION { resource:Page_from_the_Sketchbook_with_Figure_Studies property:part_of ?x . ?x rdf:type ontology:classification_scheme } }
[]
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 ?b WHERE { { SELECT DISTINCT ( MIN ( ?t ) AS ?k ) { SELECT DISTINCT ?f ( COUNT ( ?p ) AS ?t ) WHERE { ?p property:P805 ?f . ?f rdf:type ontology:Q5962346 . ?p rdf:type ontology:Q5962346 } GROUP BY ?f } } . { SELECT DISTINCT ?b ( COUNT ( ?r ) AS ?m ) WHERE { ?r property:P805 ?b . ?b rdf:type ontology:Q5962346 . ?r rdf:type ontology:Q5962346 } GROUP BY ?b } . FILTER ( ?m = ?k ) }
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 ?b WHERE { { SELECT DISTINCT ( MIN ( ?t ) AS ?k ) { SELECT DISTINCT ?f ( COUNT ( ?p ) AS ?t ) WHERE { ?p property:subject_of ?f . ?f rdf:type ontology:classification_scheme . ?p rdf:type ontology:classification_scheme } GROUP BY ?f } } . { SELECT DISTINCT ?b ( COUNT ( ?r ) AS ?m ) WHERE { ?r property:subject_of ?b . ?b rdf:type ontology:classification_scheme . ?r rdf:type ontology:classification_scheme } GROUP BY ?b } . FILTER ( ?m = ?k ) }
[]
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 ?b WHERE { { SELECT DISTINCT ( MIN ( ?t ) AS ?k ) { SELECT DISTINCT ?f ( COUNT ( ?p ) AS ?t ) WHERE { ?p property:P805 ?f . ?f rdf:type ontology:Q5962346 . ?p rdf:type ontology:Q5962346 } GROUP BY ?f } } . { SELECT DISTINCT ?b ( COUNT ( ?r ) AS ?m ) WHERE { ?r property:P805 ?b . ?b rdf:type ontology:Q5962346 . ?r rdf:type ontology:Q5962346 } GROUP BY ?b } . FILTER ( ?m = ?k ) }
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 ?b WHERE { { SELECT DISTINCT ( MIN ( ?t ) AS ?k ) { SELECT DISTINCT ?f ( COUNT ( ?p ) AS ?t ) WHERE { ?p property:subject_of ?f . ?f rdf:type ontology:classification_scheme . ?p rdf:type ontology:classification_scheme } GROUP BY ?f } } . { SELECT DISTINCT ?b ( COUNT ( ?r ) AS ?m ) WHERE { ?r property:subject_of ?b . ?b rdf:type ontology:classification_scheme . ?r rdf:type ontology:classification_scheme } GROUP BY ?b } . FILTER ( ?m = ?k ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P520
Q15142889 Q153556 Q5962346
USER
Which classification schemes have max number of weapon families and ranged weapons as their weapon ?
(c(Q5962346),P520,c(Q15142889)|c(Q153556))
action argmax
action union
action find_tuple_counts
relation P520
type Q5962346
type Q15142889
action find_tuple_counts
relation P520
type Q5962346
type Q153556
[{'concept': 'Q5962346'}, 'P520', [{'concept': 'Q15142889'}, {'concept': 'Q153556'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?p ) AS ?b ) { SELECT DISTINCT ?i ( COUNT ( ?o ) AS ?p ) WHERE { { ?i property:P520 ?o . ?i rdf:type ontology:Q5962346 . ?o rdf:type ontology:Q15142889 } UNION { ?i property:P520 ?o . ?i rdf:type ontology:Q5962346 . ?o rdf:type ontology:Q153556 } } GROUP BY ?i } } . { SELECT DISTINCT ?m ( COUNT ( ?c ) AS ?x ) WHERE { { ?m property:P520 ?c . ?m rdf:type ontology:Q5962346 . ?c rdf:type ontology:Q15142889 } UNION { ?c rdf:type ontology:Q153556 . ?m rdf:type ontology:Q5962346 . ?m property:P520 ?c } } GROUP BY ?m } . FILTER ( ?x = ?b ) }
action argmax
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
[{'concept': 'classification scheme'}, 'armament', [{'concept': 'weapon family'}, {'concept': 'ranged weapon'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?p ) AS ?b ) { SELECT DISTINCT ?i ( COUNT ( ?o ) AS ?p ) WHERE { { ?i property:armament ?o . ?i rdf:type ontology:classification_scheme . ?o rdf:type ontology:weapon_family } UNION { ?i property:armament ?o . ?i rdf:type ontology:classification_scheme . ?o rdf:type ontology:ranged_weapon } } GROUP BY ?i } } . { SELECT DISTINCT ?m ( COUNT ( ?c ) AS ?x ) WHERE { { ?m property:armament ?c . ?m rdf:type ontology:classification_scheme . ?c rdf:type ontology:weapon_family } UNION { ?c rdf:type ontology:ranged_weapon . ?m rdf:type ontology:classification_scheme . ?m property:armament ?c } } GROUP BY ?m } . FILTER ( ?x = ?b ) }
[]
weapon family ranged weapon classification scheme
Q911728 Q663037 Q1541289
SYSTEM
Victor III class submarine, Alfa-class submarine, Västergötland-class submarine
Q1541289 Q1141901 Q911728 Q663037 Q2117340
(c(Q5962346),P520,c(Q15142889)|c(Q153556))
action argmax
action union
action find_tuple_counts
relation P520
type Q5962346
type Q15142889
action find_tuple_counts
relation P520
type Q5962346
type Q153556
[ANSWERS] have max number of weapon families and ranged weapons as their weapon
[{'concept': 'Q5962346'}, 'P520', [{'concept': 'Q15142889'}, {'concept': 'Q153556'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?p ) AS ?b ) { SELECT DISTINCT ?i ( COUNT ( ?o ) AS ?p ) WHERE { { ?i property:P520 ?o . ?i rdf:type ontology:Q5962346 . ?o rdf:type ontology:Q15142889 } UNION { ?i property:P520 ?o . ?i rdf:type ontology:Q5962346 . ?o rdf:type ontology:Q153556 } } GROUP BY ?i } } . { SELECT DISTINCT ?m ( COUNT ( ?c ) AS ?x ) WHERE { { ?m property:P520 ?c . ?m rdf:type ontology:Q5962346 . ?c rdf:type ontology:Q15142889 } UNION { ?c rdf:type ontology:Q153556 . ?m rdf:type ontology:Q5962346 . ?m property:P520 ?c } } GROUP BY ?m } . FILTER ( ?x = ?b ) }
Västergötland-class submarine Gotland-class submarine Victor III class submarine Alfa-class submarine Södermanland-class submarine
Victor III class submarine, Alfa-class submarine and Västergötland-class submarine have max number of weapon families and ranged weapons as their weapon
Victor III class submarine Alfa-class submarine Västergötland-class submarine
action argmax
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
[{'concept': 'classification scheme'}, 'armament', [{'concept': 'weapon family'}, {'concept': 'ranged weapon'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MAX ( ?p ) AS ?b ) { SELECT DISTINCT ?i ( COUNT ( ?o ) AS ?p ) WHERE { { ?i property:armament ?o . ?i rdf:type ontology:classification_scheme . ?o rdf:type ontology:weapon_family } UNION { ?i property:armament ?o . ?i rdf:type ontology:classification_scheme . ?o rdf:type ontology:ranged_weapon } } GROUP BY ?i } } . { SELECT DISTINCT ?m ( COUNT ( ?c ) AS ?x ) WHERE { { ?m property:armament ?c . ?m rdf:type ontology:classification_scheme . ?c rdf:type ontology:weapon_family } UNION { ?c rdf:type ontology:ranged_weapon . ?m rdf:type ontology:classification_scheme . ?m property:armament ?c } } GROUP BY ?m } . FILTER ( ?x = ?b ) }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P176
Q4830453 Q43229
USER
How many business enterprises and organizations are the producer of that classification scheme ?
(Q663037,P176,c(Q4830453)) (Q663037,P176,c(Q43229)) (Q911728,P176,c(Q4830453)) (Q911728,P176,c(Q43229)) (Q663037,P176,c(Q4830453)) (Q663037,P176,c(Q43229)) (Q1541289,P176,c(Q4830453)) (Q1541289,P176,c(Q43229))
['Q663037', 'P176', {'concept': 'Q4830453'}] ['Q663037', 'P176', {'concept': 'Q43229'}] ['Q911728', 'P176', {'concept': 'Q4830453'}] ['Q911728', 'P176', {'concept': 'Q43229'}] ['Q663037', 'P176', {'concept': 'Q4830453'}] ['Q663037', 'P176', {'concept': 'Q43229'}] ['Q1541289', 'P176', {'concept': 'Q4830453'}] ['Q1541289', 'P176', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q663037 property:P176 ?z } UNION { resource:Q663037 property:P176 ?y } UNION { resource:Q911728 property:P176 ?z } UNION { resource:Q911728 property:P176 ?y } UNION { resource:Q663037 property:P176 ?z } UNION { resource:Q663037 property:P176 ?y } UNION { resource:Q1541289 property:P176 ?z } UNION { resource:Q1541289 property:P176 ?y } } . ?z rdf:type ontology:Q4830453 . ?y rdf:type ontology:Q43229 }
['Alfa-class submarine', 'manufacturer', {'concept': 'business enterprise'}] ['Alfa-class submarine', 'manufacturer', {'concept': 'organization'}] ['Victor III class submarine', 'manufacturer', {'concept': 'business enterprise'}] ['Victor III class submarine', 'manufacturer', {'concept': 'organization'}] ['Alfa-class submarine', 'manufacturer', {'concept': 'business enterprise'}] ['Alfa-class submarine', 'manufacturer', {'concept': 'organization'}] ['Västergötland-class submarine', 'manufacturer', {'concept': 'business enterprise'}] ['Västergötland-class submarine', 'manufacturer', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Alfa-class_submarine property:manufacturer ?z } UNION { resource:Alfa-class_submarine property:manufacturer ?y } UNION { resource:Victor_III_class_submarine property:manufacturer ?z } UNION { resource:Victor_III_class_submarine property:manufacturer ?y } UNION { resource:Alfa-class_submarine property:manufacturer ?z } UNION { resource:Alfa-class_submarine property:manufacturer ?y } UNION { resource:Västergötland-class_submarine property:manufacturer ?z } UNION { resource:Västergötland-class_submarine property:manufacturer ?y } } . ?z rdf:type ontology:business_enterprise . ?y rdf:type ontology:organization }
[]
business enterprise organization
Quantitative|Count|Mult. entity type|Clarification
Q1541289
SYSTEM
Did you mean Västergötland-class submarine ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q663037 property:P176 ?z } UNION { resource:Q663037 property:P176 ?y } UNION { resource:Q911728 property:P176 ?z } UNION { resource:Q911728 property:P176 ?y } UNION { resource:Q663037 property:P176 ?z } UNION { resource:Q663037 property:P176 ?y } UNION { resource:Q1541289 property:P176 ?z } UNION { resource:Q1541289 property:P176 ?y } } . ?z rdf:type ontology:Q4830453 . ?y rdf:type ontology:Q43229 }
Did you mean Västergötland-class submarine ?
Västergötland-class submarine
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Alfa-class_submarine property:manufacturer ?z } UNION { resource:Alfa-class_submarine property:manufacturer ?y } UNION { resource:Victor_III_class_submarine property:manufacturer ?z } UNION { resource:Victor_III_class_submarine property:manufacturer ?y } UNION { resource:Alfa-class_submarine property:manufacturer ?z } UNION { resource:Alfa-class_submarine property:manufacturer ?y } UNION { resource:Västergötland-class_submarine property:manufacturer ?z } UNION { resource:Västergötland-class_submarine property:manufacturer ?y } } . ?z rdf:type ontology:business_enterprise . ?y rdf:type ontology:organization }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Alfa-class submarine. Could you tell me the answer for that?
(Q663037,P176,c(Q4830453)) (Q663037,P176,c(Q43229)) (Q911728,P176,c(Q4830453)) (Q911728,P176,c(Q43229)) (Q663037,P176,c(Q4830453)) (Q663037,P176,c(Q43229)) (Q1541289,P176,c(Q4830453)) (Q1541289,P176,c(Q43229))
Q663037
['Q663037', 'P176', {'concept': 'Q4830453'}] ['Q663037', 'P176', {'concept': 'Q43229'}] ['Q911728', 'P176', {'concept': 'Q4830453'}] ['Q911728', 'P176', {'concept': 'Q43229'}] ['Q663037', 'P176', {'concept': 'Q4830453'}] ['Q663037', 'P176', {'concept': 'Q43229'}] ['Q1541289', 'P176', {'concept': 'Q4830453'}] ['Q1541289', 'P176', {'concept': 'Q43229'}]
['Alfa-class submarine', 'manufacturer', {'concept': 'business enterprise'}] ['Alfa-class submarine', 'manufacturer', {'concept': 'organization'}] ['Victor III class submarine', 'manufacturer', {'concept': 'business enterprise'}] ['Victor III class submarine', 'manufacturer', {'concept': 'organization'}] ['Alfa-class submarine', 'manufacturer', {'concept': 'business enterprise'}] ['Alfa-class submarine', 'manufacturer', {'concept': 'organization'}] ['Västergötland-class submarine', 'manufacturer', {'concept': 'business enterprise'}] ['Västergötland-class submarine', 'manufacturer', {'concept': 'organization'}]
[]
SYSTEM
1 business enterprises and 1 organizations
Q2292711 Q2628643
(Q663037,P176,c(Q4830453)) (Q663037,P176,c(Q43229)) (Q911728,P176,c(Q4830453)) (Q911728,P176,c(Q43229)) (Q663037,P176,c(Q4830453)) (Q663037,P176,c(Q43229)) (Q1541289,P176,c(Q4830453)) (Q1541289,P176,c(Q43229))
[ANSWER]
['Q663037', 'P176', {'concept': 'Q4830453'}] ['Q663037', 'P176', {'concept': 'Q43229'}] ['Q911728', 'P176', {'concept': 'Q4830453'}] ['Q911728', 'P176', {'concept': 'Q43229'}] ['Q663037', 'P176', {'concept': 'Q4830453'}] ['Q663037', 'P176', {'concept': 'Q43229'}] ['Q1541289', 'P176', {'concept': 'Q4830453'}] ['Q1541289', 'P176', {'concept': 'Q43229'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q663037 property:P176 ?z } UNION { resource:Q663037 property:P176 ?y } UNION { resource:Q911728 property:P176 ?z } UNION { resource:Q911728 property:P176 ?y } UNION { resource:Q663037 property:P176 ?z } UNION { resource:Q663037 property:P176 ?y } UNION { resource:Q1541289 property:P176 ?z } UNION { resource:Q1541289 property:P176 ?y } } . ?z rdf:type ontology:Q4830453 . ?y rdf:type ontology:Q43229 }
Admiralty Shipyard Sevmash
1 business enterprises and 1 organizations
['Alfa-class submarine', 'manufacturer', {'concept': 'business enterprise'}] ['Alfa-class submarine', 'manufacturer', {'concept': 'organization'}] ['Victor III class submarine', 'manufacturer', {'concept': 'business enterprise'}] ['Victor III class submarine', 'manufacturer', {'concept': 'organization'}] ['Alfa-class submarine', 'manufacturer', {'concept': 'business enterprise'}] ['Alfa-class submarine', 'manufacturer', {'concept': 'organization'}] ['Västergötland-class submarine', 'manufacturer', {'concept': 'business enterprise'}] ['Västergötland-class submarine', 'manufacturer', {'concept': 'organization'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Alfa-class_submarine property:manufacturer ?z } UNION { resource:Alfa-class_submarine property:manufacturer ?y } UNION { resource:Victor_III_class_submarine property:manufacturer ?z } UNION { resource:Victor_III_class_submarine property:manufacturer ?y } UNION { resource:Alfa-class_submarine property:manufacturer ?z } UNION { resource:Alfa-class_submarine property:manufacturer ?y } UNION { resource:Västergötland-class_submarine property:manufacturer ?z } UNION { resource:Västergötland-class_submarine property:manufacturer ?y } } . ?z rdf:type ontology:business_enterprise . ?y rdf:type ontology:organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1541289
P289
Q2235308
USER
Whose vessel class are known as Västergötland-class submarine ?
(c(Q2235308),P289,Q1541289)
action filter_type
action find_reverse
entity Q1541289
relation P289
type Q2235308
[{'concept': 'Q2235308'}, 'P289', 'Q1541289']
SELECT DISTINCT ?l WHERE { ?l property:P289 resource:Q1541289 . ?l rdf:type ontology:Q2235308 }
Västergötland-class submarine
action filter_type
action find_reverse
entity Västergötland-class submarine
relation vessel class
type ship type
[{'concept': 'ship type'}, 'vessel class', 'Västergötland-class submarine']
SELECT DISTINCT ?l WHERE { ?l property:vessel_class resource:Västergötland-class_submarine . ?l rdf:type ontology:ship_type }
[]
ship type
Q10515187 Q10513251 Q10515286
SYSTEM
HMS Södermanland, HMS Hälsingland, HMS Östergötland
Q10513251 Q10515187 Q10515286 Q10515261
(c(Q2235308),P289,Q1541289)
action filter_type
action find_reverse
entity Q1541289
relation P289
type Q2235308
As [ANSWERS] are known as Västergötland-class submarine
[{'concept': 'Q2235308'}, 'P289', 'Q1541289']
SELECT DISTINCT ?l WHERE { ?l property:P289 resource:Q1541289 . ?l rdf:type ontology:Q2235308 }
HMS Hälsingland HMS Södermanland HMS Östergötland HMS Västergötland
As HMS Södermanland, HMS Hälsingland and HMS Östergötland are known as Västergötland-class submarine
HMS Södermanland HMS Hälsingland HMS Östergötland
action filter_type
action find_reverse
entity Västergötland-class submarine
relation vessel class
type ship type
[{'concept': 'ship type'}, 'vessel class', 'Västergötland-class submarine']
SELECT DISTINCT ?l WHERE { ?l property:vessel_class resource:Västergötland-class_submarine . ?l rdf:type ontology:ship_type }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q10515187 Q10513251 Q10515286
P520
Q153556
USER
What are used as a weapon by those ship types ?
(Q10515187,P520,c(Q153556)) (Q10513251,P520,c(Q153556)) (Q10515286,P520,c(Q153556))
action filter_type
action find
entity prev_answer
relation P520
type Q153556
['Q10515187', 'P520', {'concept': 'Q153556'}] ['Q10513251', 'P520', {'concept': 'Q153556'}] ['Q10515286', 'P520', {'concept': 'Q153556'}]
SELECT DISTINCT ?y WHERE { ?x property:P520 ?y . VALUES ( ?x ) { ( resource:Q10513251 ) ( resource:Q10515187 ) ( resource:Q10515286 ) } . ?y rdf:type ontology:Q153556 }
HMS Södermanland HMS Hälsingland HMS Östergötland
action filter_type
action find
entity prev_answer
relation armament
type ranged weapon
['HMS Södermanland', 'armament', {'concept': 'ranged weapon'}] ['HMS Hälsingland', 'armament', {'concept': 'ranged weapon'}] ['HMS Östergötland', 'armament', {'concept': 'ranged weapon'}]
SELECT DISTINCT ?y WHERE { ?x property:armament ?y . VALUES ( ?x ) { ( resource:HMS_Hälsingland ) ( resource:HMS_Södermanland ) ( resource:HMS_Östergötland ) } . ?y rdf:type ontology:ranged_weapon }
[]
ranged weapon
Q3012635 Q14911695 Q7826725
SYSTEM
Torpedo 613, Torpedo 45, Torpedo 62
Q3012635 Q14911695 Q7826725 Q3012635 Q14911695 Q7826725 Q3012635 Q14911695 Q7826725
(Q10515187,P520,c(Q153556)) (Q10513251,P520,c(Q153556)) (Q10515286,P520,c(Q153556))
action filter_type
action find
entity prev_answer
relation P520
type Q153556
[ANSWERS] are used as a weapon by those ship types
['Q10515187', 'P520', {'concept': 'Q153556'}] ['Q10513251', 'P520', {'concept': 'Q153556'}] ['Q10515286', 'P520', {'concept': 'Q153556'}]
SELECT DISTINCT ?y WHERE { ?x property:P520 ?y . VALUES ( ?x ) { ( resource:Q10513251 ) ( resource:Q10515187 ) ( resource:Q10515286 ) } . ?y rdf:type ontology:Q153556 }
Torpedo 613 Torpedo 45 Torpedo 62 Torpedo 613 Torpedo 45 Torpedo 62 Torpedo 613 Torpedo 45 Torpedo 62
Torpedo 613, Torpedo 45 and Torpedo 62 are used as a weapon by those ship types
Torpedo 613 Torpedo 45 Torpedo 62
action filter_type
action find
entity prev_answer
relation armament
type ranged weapon
['HMS Södermanland', 'armament', {'concept': 'ranged weapon'}] ['HMS Hälsingland', 'armament', {'concept': 'ranged weapon'}] ['HMS Östergötland', 'armament', {'concept': 'ranged weapon'}]
SELECT DISTINCT ?y WHERE { ?x property:armament ?y . VALUES ( ?x ) { ( resource:HMS_Hälsingland ) ( resource:HMS_Södermanland ) ( resource:HMS_Östergötland ) } . ?y rdf:type ontology:ranged_weapon }
[]
Clarification
Simple Question|Single Entity|Indirect
Q7826725
P495
Q15617994
USER
Where did that ranged weapon originate ?
(Q7826725,P495,c(Q15617994))
action filter_type
action find
entity Q7826725
relation P495
type Q15617994
['Q7826725', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q7826725 property:P495 ?j . ?j rdf:type ontology:Q15617994 }
Torpedo 62
action filter_type
action find
entity Torpedo 62
relation country of origin
type designation for an administrative territorial entity
['Torpedo 62', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Torpedo_62 property:country_of_origin ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q7826725
SYSTEM
Did you mean Torpedo 62 ?
Q3012635 Q14911695 Q7826725
(Q3012635,P495,c(Q15617994)) (Q14911695,P495,c(Q15617994)) (Q7826725,P495,c(Q15617994))
[ANSWER]
['Q3012635', 'P495', {'concept': 'Q15617994'}] ['Q14911695', 'P495', {'concept': 'Q15617994'}] ['Q7826725', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q7826725 property:P495 ?j . ?j rdf:type ontology:Q15617994 }
Torpedo 613 Torpedo 45 Torpedo 62
Did you mean Torpedo 62 ?
Torpedo 62
['Torpedo 613', 'country of origin', {'concept': 'designation for an administrative territorial entity'}] ['Torpedo 45', 'country of origin', {'concept': 'designation for an administrative territorial entity'}] ['Torpedo 62', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Torpedo_62 property:country_of_origin ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
Yes
(Q7826725,P495,c(Q15617994))
['Q7826725', 'P495', {'concept': 'Q15617994'}]
['Torpedo 62', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
Q34
SYSTEM
Sweden
Q34
(Q7826725,P495,c(Q15617994))
action filter_type
action find
entity Q7826725
relation P495
type Q15617994
That ranged weapon originated in [ANSWER]
['Q7826725', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q7826725 property:P495 ?j . ?j rdf:type ontology:Q15617994 }
Sweden
That ranged weapon originated in Sweden
Sweden
action filter_type
action find
entity Torpedo 62
relation country of origin
type designation for an administrative territorial entity
['Torpedo 62', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Torpedo_62 property:country_of_origin ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P495
Q15617994 Q838948 Q201658
USER
Which administrative territories did greater number of works of art and film genres originate than that administrative territory ?
(c(Q838948)|c(Q201658),P495,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q201658
action count
action filter_multi_types
action find_reverse
entity Q34
relation P495
type Q838948
type Q201658
[[{'concept': 'Q838948'}, {'concept': 'Q201658'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?a ) AS ?f ) WHERE { VALUES ( ?s ) { ( ontology:Q838948 ) ( ontology:Q201658 ) } . ?a rdf:type ?s } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?m ) WHERE { { { ?x rdf:type ontology:Q838948 } UNION { ?x rdf:type ontology:Q201658 } } . ?x property:P495 resource:Q34 } } . FILTER ( ?f > ?m ) }
action greater
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type film genre
action count
action filter_multi_types
action find_reverse
entity Sweden
relation country of origin
type work of art
type film genre
[[{'concept': 'work of art'}, {'concept': 'film genre'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?a ) AS ?f ) WHERE { VALUES ( ?s ) { ( ontology:work_of_art ) ( ontology:film_genre ) } . ?a rdf:type ?s } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?m ) WHERE { { { ?x rdf:type ontology:work_of_art } UNION { ?x rdf:type ontology:film_genre } } . ?x property:country_of_origin resource:Sweden } } . FILTER ( ?f > ?m ) }
[]
designation for an administrative territorial entity work of art film genre
Q38 Q30 Q142
SYSTEM
Italy, United States of America, France
Q668 Q414 Q142 Q145 Q148 Q884 Q30 Q38 Q96 Q17 Q29
(c(Q838948)|c(Q201658),P495,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q838948
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q201658
action count
action filter_multi_types
action find_reverse
entity Q34
relation P495
type Q838948
type Q201658
[ANSWERS] greater number of works of art and film genres originated than that administrative territory
[[{'concept': 'Q838948'}, {'concept': 'Q201658'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?a ) AS ?f ) WHERE { VALUES ( ?s ) { ( ontology:Q838948 ) ( ontology:Q201658 ) } . ?a rdf:type ?s } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?m ) WHERE { { { ?x rdf:type ontology:Q838948 } UNION { ?x rdf:type ontology:Q201658 } } . ?x property:P495 resource:Q34 } } . FILTER ( ?f > ?m ) }
India Argentina France United Kingdom People's Republic of China South Korea United States of America Italy Mexico Japan Spain
Italy, United States of America and France greater number of works of art and film genres originated than that administrative territory
Italy United States of America France
action greater
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type film genre
action count
action filter_multi_types
action find_reverse
entity Sweden
relation country of origin
type work of art
type film genre
[[{'concept': 'work of art'}, {'concept': 'film genre'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?a ) AS ?f ) WHERE { VALUES ( ?s ) { ( ontology:work_of_art ) ( ontology:film_genre ) } . ?a rdf:type ?s } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?m ) WHERE { { { ?x rdf:type ontology:work_of_art } UNION { ?x rdf:type ontology:film_genre } } . ?x property:country_of_origin resource:Sweden } } . FILTER ( ?f > ?m ) }
[]