Simple Question (Direct)
Simple Question
Q16590462
P106
Q12737077
USER
What is the profession of Pietro Montresori ?
(Q16590462,P106,c(Q12737077))
action filter_type
action find
entity Q16590462
relation P106
type Q12737077
['Q16590462', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q16590462 property:P106 ?p . ?p rdf:type ontology:Q12737077 }
Pietro Montresori
action filter_type
action find
entity Pietro Montresori
relation occupation
type occupation
['Pietro Montresori', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Pietro_Montresori property:occupation ?p . ?p rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q16590462,P106,c(Q12737077))
action filter_type
action find
entity Q16590462
relation P106
type Q12737077
The profession of Pietro Montresori is a [ANSWER]
['Q16590462', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { resource:Q16590462 property:P106 ?p . ?p rdf:type ontology:Q12737077 }
politician
The profession of Pietro Montresori is a politician
politician
action filter_type
action find
entity Pietro Montresori
relation occupation
type occupation
['Pietro Montresori', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { resource:Pietro_Montresori property:occupation ?p . ?p rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16590462
P19
Q56061
USER
Which administrative territory is the birthplace of Pietro Montresori ?
(Q16590462,P19,c(Q56061))
action filter_type
action find
entity Q16590462
relation P19
type Q56061
['Q16590462', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q56061 . resource:Q16590462 property:P19 ?w }
Pietro Montresori
action filter_type
action find
entity Pietro Montresori
relation place of birth
type administrative territorial entity
['Pietro Montresori', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:administrative_territorial_entity . resource:Pietro_Montresori property:place_of_birth ?w }
[]
administrative territorial entity
Q13629
SYSTEM
Sassari
Q13629
(Q16590462,P19,c(Q56061))
action filter_type
action find
entity Q16590462
relation P19
type Q56061
[ANSWER] is the birthplace of Pietro Montresori
['Q16590462', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q56061 . resource:Q16590462 property:P19 ?w }
Sassari
Sassari is the birthplace of Pietro Montresori
Sassari
action filter_type
action find
entity Pietro Montresori
relation place of birth
type administrative territorial entity
['Pietro Montresori', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:administrative_territorial_entity . resource:Pietro_Montresori property:place_of_birth ?w }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q4726802
Q56061
USER
And how about Alioune Gueye?
(Q4726802,P19,c(Q56061))
action filter_type
action find
entity Q4726802
relation P19
type Q56061
['Q4726802', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { resource:Q4726802 property:P19 ?t . ?t rdf:type ontology:Q56061 }
Alioune Gueye
action filter_type
action find
entity Alioune Gueye
relation place of birth
type administrative territorial entity
['Alioune Gueye', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Alioune_Gueye property:place_of_birth ?t . ?t rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q202776
SYSTEM
Ziguinchor
Q202776
(Q4726802,P19,c(Q56061))
action filter_type
action find
entity Q4726802
relation P19
type Q56061
[ANSWER]
['Q4726802', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { resource:Q4726802 property:P19 ?t . ?t rdf:type ontology:Q56061 }
Ziguinchor
Ziguinchor
action filter_type
action find
entity Alioune Gueye
relation place of birth
type administrative territorial entity
['Alioune Gueye', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Alioune_Gueye property:place_of_birth ?t . ?t rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q12035354 Q4726802
P27
Q15617994
USER
Which administrative territories are Alioune Gueye or Marian Kotleba an inhabitant of ?
OR((Q4726802,P27,c(Q15617994)), (Q12035354,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q4726802
relation P27
action find
entity Q12035354
relation P27
type Q15617994
{'OR': [['Q4726802', 'P27', {'concept': 'Q15617994'}], ['Q12035354', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q4726802 property:P27 ?m } UNION { resource:Q12035354 property:P27 ?m } } . ?m rdf:type ontology:Q15617994 }
Marian Kotleba Alioune Gueye
action filter_type
action union
action find
entity Alioune Gueye
relation country of citizenship
action find
entity Marian Kotleba
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Alioune Gueye', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Marian Kotleba', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Alioune_Gueye property:country_of_citizenship ?m } UNION { resource:Marian_Kotleba property:country_of_citizenship ?m } } . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q1041 Q214
SYSTEM
Senegal, Slovakia
Q1041 Q214
OR((Q4726802,P27,c(Q15617994)), (Q12035354,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q4726802
relation P27
action find
entity Q12035354
relation P27
type Q15617994
[ANSWERS] are Alioune Gueye or Marian Kotleba an inhabitant of
{'OR': [['Q4726802', 'P27', {'concept': 'Q15617994'}], ['Q12035354', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q4726802 property:P27 ?m } UNION { resource:Q12035354 property:P27 ?m } } . ?m rdf:type ontology:Q15617994 }
Senegal Slovakia
Senegal and Slovakia are Alioune Gueye or Marian Kotleba an inhabitant of
Senegal Slovakia
action filter_type
action union
action find
entity Alioune Gueye
relation country of citizenship
action find
entity Marian Kotleba
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Alioune Gueye', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Marian Kotleba', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Alioune_Gueye property:country_of_citizenship ?m } UNION { resource:Marian_Kotleba property:country_of_citizenship ?m } } . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2666452 Q13629
P17
Q15617994
USER
Which administrative territories are Sassari or Nansena Island present in ?
OR((Q13629,P17,c(Q15617994)), (Q2666452,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q13629
relation P17
action find
entity Q2666452
relation P17
type Q15617994
{'OR': [['Q13629', 'P17', {'concept': 'Q15617994'}], ['Q2666452', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { { ?b property:P17 ?r . VALUES ( ?b ) { ( resource:Q2666452 ) ( resource:Q13629 ) } } . ?r rdf:type ontology:Q15617994 }
Nansena Island Sassari
action filter_type
action union
action find
entity Sassari
relation country
action find
entity Nansena Island
relation country
type designation for an administrative territorial entity
{'OR': [['Sassari', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Nansena Island', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { { ?b property:country ?r . VALUES ( ?b ) { ( resource:Nansena_Island ) ( resource:Sassari ) } } . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38 Q159
SYSTEM
Italy, Russia
Q38 Q159
OR((Q13629,P17,c(Q15617994)), (Q2666452,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q13629
relation P17
action find
entity Q2666452
relation P17
type Q15617994
[ANSWERS]
{'OR': [['Q13629', 'P17', {'concept': 'Q15617994'}], ['Q2666452', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { { ?b property:P17 ?r . VALUES ( ?b ) { ( resource:Q2666452 ) ( resource:Q13629 ) } } . ?r rdf:type ontology:Q15617994 }
Italy Russia
Which administrative territories are Sassari or Nansena Island present in
Italy Russia
action filter_type
action union
action find
entity Sassari
relation country
action find
entity Nansena Island
relation country
type designation for an administrative territorial entity
{'OR': [['Sassari', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Nansena Island', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { { ?b property:country ?r . VALUES ( ?b ) { ( resource:Nansena_Island ) ( resource:Sassari ) } } . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q155955
P138
Q79529 Q2472587 Q56061
USER
Which administrative territories come from greater number of chemical substances or peoples than Kuybyshev ?
(c(Q56061),P138,c(Q79529)|c(Q2472587))
action greater
action union
action find_tuple_counts
relation P138
type Q56061
type Q79529
action find_tuple_counts
relation P138
type Q56061
type Q2472587
action count
action filter_multi_types
action find
entity Q155955
relation P138
type Q79529
type Q2472587
[{'concept': 'Q56061'}, 'P138', [{'concept': 'Q79529'}, {'concept': 'Q2472587'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?r ) AS ?c ) WHERE { VALUES ( ?h ) { ( ontology:Q79529 ) ( ontology:Q2472587 ) } . ?r rdf:type ?h } GROUP BY ?m } . FILTER ( ?c > ?e ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?e ) WHERE { resource:Q155955 property:P138 ?f . { { ?f rdf:type ontology:Q79529 } UNION { ?f rdf:type ontology:Q2472587 } } } } }
Kuybyshev
action greater
action union
action find_tuple_counts
relation named after
type administrative territorial entity
type chemical substance
action find_tuple_counts
relation named after
type administrative territorial entity
type people
action count
action filter_multi_types
action find
entity Kuybyshev
relation named after
type chemical substance
type people
[{'concept': 'administrative territorial entity'}, 'named after', [{'concept': 'chemical substance'}, {'concept': 'people'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?r ) AS ?c ) WHERE { VALUES ( ?h ) { ( ontology:chemical_substance ) ( ontology:people ) } . ?r rdf:type ?h } GROUP BY ?m } . FILTER ( ?c > ?e ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?e ) WHERE { resource:Kuybyshev property:named_after ?f . { { ?f rdf:type ontology:chemical_substance } UNION { ?f rdf:type ontology:people } } } } }
[]
chemical substance people administrative territorial entity
Q2621007 Q970482 Q131335
SYSTEM
Kreva, Nacogdoches, Sioux Falls
Q131335 Q970482 Q3239732 Q2294628 Q666165 Q50816 Q2621007 Q103661
(c(Q56061),P138,c(Q79529)|c(Q2472587))
action greater
action union
action find_tuple_counts
relation P138
type Q56061
type Q79529
action find_tuple_counts
relation P138
type Q56061
type Q2472587
action count
action filter_multi_types
action find
entity Q155955
relation P138
type Q79529
type Q2472587
[ANSWERS] come from greater number of chemical substances or peoples than Kuybyshev
[{'concept': 'Q56061'}, 'P138', [{'concept': 'Q79529'}, {'concept': 'Q2472587'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?r ) AS ?c ) WHERE { VALUES ( ?h ) { ( ontology:Q79529 ) ( ontology:Q2472587 ) } . ?r rdf:type ?h } GROUP BY ?m } . FILTER ( ?c > ?e ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?e ) WHERE { resource:Q155955 property:P138 ?f . { { ?f rdf:type ontology:Q79529 } UNION { ?f rdf:type ontology:Q2472587 } } } } }
Sioux Falls Nacogdoches Sulphur Oneida Augusta Treverorum Mississauga Kreva Apatity
Kreva, Nacogdoches and Sioux Falls come from greater number of chemical substances or peoples than Kuybyshev
Kreva Nacogdoches Sioux Falls
action greater
action union
action find_tuple_counts
relation named after
type administrative territorial entity
type chemical substance
action find_tuple_counts
relation named after
type administrative territorial entity
type people
action count
action filter_multi_types
action find
entity Kuybyshev
relation named after
type chemical substance
type people
[{'concept': 'administrative territorial entity'}, 'named after', [{'concept': 'chemical substance'}, {'concept': 'people'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?r ) AS ?c ) WHERE { VALUES ( ?h ) { ( ontology:chemical_substance ) ( ontology:people ) } . ?r rdf:type ?h } GROUP BY ?m } . FILTER ( ?c > ?e ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?e ) WHERE { resource:Kuybyshev property:named_after ?f . { { ?f rdf:type ontology:chemical_substance } UNION { ?f rdf:type ontology:people } } } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q2135060
P138
Q79529 Q2472587 Q56061
USER
And what about Gas?
(c(Q56061),P138,c(Q79529)|c(Q2472587))
action greater
action union
action find_tuple_counts
relation P138
type Q56061
type Q79529
action find_tuple_counts
relation P138
type Q56061
type Q2472587
action count
action filter_multi_types
action find
entity Q2135060
relation P138
type Q79529
type Q2472587
[{'concept': 'Q56061'}, 'P138', [{'concept': 'Q79529'}, {'concept': 'Q2472587'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?l ) AS ?b ) WHERE { VALUES ( ?c ) { ( ontology:Q79529 ) ( ontology:Q2472587 ) } . ?l rdf:type ?c } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?y ) WHERE { resource:Q2135060 property:P138 ?v . { ?v rdf:type ?p . VALUES ( ?p ) { ( ontology:Q2472587 ) ( ontology:Q79529 ) } } } } . FILTER ( ?b > ?y ) }
Gas
action greater
action union
action find_tuple_counts
relation named after
type administrative territorial entity
type chemical substance
action find_tuple_counts
relation named after
type administrative territorial entity
type people
action count
action filter_multi_types
action find
entity Gas
relation named after
type chemical substance
type people
[{'concept': 'administrative territorial entity'}, 'named after', [{'concept': 'chemical substance'}, {'concept': 'people'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?l ) AS ?b ) WHERE { VALUES ( ?c ) { ( ontology:chemical_substance ) ( ontology:people ) } . ?l rdf:type ?c } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?y ) WHERE { resource:Gas property:named_after ?v . { ?v rdf:type ?p . VALUES ( ?p ) { ( ontology:people ) ( ontology:chemical_substance ) } } } } . FILTER ( ?b > ?y ) }
[]
chemical substance people administrative territorial entity
Q2621007 Q970482 Q131335
SYSTEM
Kreva, Nacogdoches, Sioux Falls
Q131335 Q970482 Q3239732 Q2294628 Q666165 Q50816 Q2621007 Q103661
(c(Q56061),P138,c(Q79529)|c(Q2472587))
action greater
action union
action find_tuple_counts
relation P138
type Q56061
type Q79529
action find_tuple_counts
relation P138
type Q56061
type Q2472587
action count
action filter_multi_types
action find
entity Q2135060
relation P138
type Q79529
type Q2472587
[ANSWERS]
[{'concept': 'Q56061'}, 'P138', [{'concept': 'Q79529'}, {'concept': 'Q2472587'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?l ) AS ?b ) WHERE { VALUES ( ?c ) { ( ontology:Q79529 ) ( ontology:Q2472587 ) } . ?l rdf:type ?c } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?y ) WHERE { resource:Q2135060 property:P138 ?v . { ?v rdf:type ?p . VALUES ( ?p ) { ( ontology:Q2472587 ) ( ontology:Q79529 ) } } } } . FILTER ( ?b > ?y ) }
Sioux Falls Nacogdoches Sulphur Oneida Augusta Treverorum Mississauga Kreva Apatity
Kreva Nacogdoches Sioux Falls
action greater
action union
action find_tuple_counts
relation named after
type administrative territorial entity
type chemical substance
action find_tuple_counts
relation named after
type administrative territorial entity
type people
action count
action filter_multi_types
action find
entity Gas
relation named after
type chemical substance
type people
[{'concept': 'administrative territorial entity'}, 'named after', [{'concept': 'chemical substance'}, {'concept': 'people'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?l ) AS ?b ) WHERE { VALUES ( ?c ) { ( ontology:chemical_substance ) ( ontology:people ) } . ?l rdf:type ?c } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?y ) WHERE { resource:Gas property:named_after ?v . { ?v rdf:type ?p . VALUES ( ?p ) { ( ontology:people ) ( ontology:chemical_substance ) } } } } . FILTER ( ?b > ?y ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q214
P530
Q1048835
USER
How many political territories have diplomatic relationships with Slovakia ?
(Q214,P530,c(Q1048835))
action count
action filter_type
action find
entity Q214
relation P530
type Q1048835
['Q214', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) WHERE { resource:Q214 property:P530 ?m . ?m rdf:type ontology:Q1048835 }
Slovakia
action count
action filter_type
action find
entity Slovakia
relation diplomatic relation
type political territorial entity
['Slovakia', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) WHERE { resource:Slovakia property:diplomatic_relation ?m . ?m rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
1
Q183
(Q214,P530,c(Q1048835))
action count
action filter_type
action find
entity Q214
relation P530
type Q1048835
[ANSWER]
['Q214', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) WHERE { resource:Q214 property:P530 ?m . ?m rdf:type ontology:Q1048835 }
Germany
1
action count
action filter_type
action find
entity Slovakia
relation diplomatic relation
type political territorial entity
['Slovakia', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) WHERE { resource:Slovakia property:diplomatic_relation ?m . ?m rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q1020
P530
Q1048835
USER
And how about Malawi?
(Q1020,P530,c(Q1048835))
action count
action filter_type
action find
entity Q1020
relation P530
type Q1048835
['Q1020', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) WHERE { resource:Q1020 property:P530 ?u . ?u rdf:type ontology:Q1048835 }
Malawi
action count
action filter_type
action find
entity Malawi
relation diplomatic relation
type political territorial entity
['Malawi', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) WHERE { resource:Malawi property:diplomatic_relation ?u . ?u rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
1
Q408
(Q1020,P530,c(Q1048835))
action count
action filter_type
action find
entity Q1020
relation P530
type Q1048835
[ANSWER]
['Q1020', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) WHERE { resource:Q1020 property:P530 ?u . ?u rdf:type ontology:Q1048835 }
Australia
1
action count
action filter_type
action find
entity Malawi
relation diplomatic relation
type political territorial entity
['Malawi', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) WHERE { resource:Malawi property:diplomatic_relation ?u . ?u rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q889
Q1048835
USER
And also tell me about Afghanistan?
(Q889,P530,c(Q1048835))
action count
action filter_type
action find
entity Q889
relation P530
type Q1048835
['Q889', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) WHERE { resource:Q889 property:P530 ?u . ?u rdf:type ontology:Q1048835 }
Afghanistan
action count
action filter_type
action find
entity Afghanistan
relation diplomatic relation
type political territorial entity
['Afghanistan', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) WHERE { resource:Afghanistan property:diplomatic_relation ?u . ?u rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
3
(Q889,P530,c(Q1048835))
action count
action filter_type
action find
entity Q889
relation P530
type Q1048835
[ANSWER]
['Q889', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) WHERE { resource:Q889 property:P530 ?u . ?u rdf:type ontology:Q1048835 }
3
action count
action filter_type
action find
entity Afghanistan
relation diplomatic relation
type political territorial entity
['Afghanistan', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?h ) WHERE { resource:Afghanistan property:diplomatic_relation ?u . ?u rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P206
Q337567 Q1267889 Q56061
USER
How many administrative territories are located in the neighbourhood of around 2 still waterss or waterways ?
(c(Q56061),P206,c(Q337567)|c(Q1267889))
action count
action approx
action union
action find_tuple_counts
relation P206
type Q56061
type Q337567
action find_tuple_counts
relation P206
type Q56061
type Q1267889
value 2
[{'concept': 'Q56061'}, 'P206', [{'concept': 'Q337567'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?v ) AS ?b ) WHERE { VALUES ( ?w ) { ( ontology:Q337567 ) ( ontology:Q1267889 ) } . ?v rdf:type ?w } GROUP BY ?c } . FILTER ( ?b = 2 ) }
action count
action approx
action union
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type still waters
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type waterway
value 2
[{'concept': 'administrative territorial entity'}, 'located next to body of water', [{'concept': 'still waters'}, {'concept': 'waterway'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?v ) AS ?b ) WHERE { VALUES ( ?w ) { ( ontology:still_waters ) ( ontology:waterway ) } . ?v rdf:type ?w } GROUP BY ?c } . FILTER ( ?b = 2 ) }
[]
still waters waterway administrative territorial entity
SYSTEM
3
Q83178 Q134620 Q64
(c(Q56061),P206,c(Q337567)|c(Q1267889))
action count
action approx
action union
action find_tuple_counts
relation P206
type Q56061
type Q337567
action find_tuple_counts
relation P206
type Q56061
type Q1267889
value 2
[ANSWER]
[{'concept': 'Q56061'}, 'P206', [{'concept': 'Q337567'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?v ) AS ?b ) WHERE { VALUES ( ?w ) { ( ontology:Q337567 ) ( ontology:Q1267889 ) } . ?v rdf:type ?w } GROUP BY ?c } . FILTER ( ?b = 2 ) }
Almere Jyväskylä Berlin
3
action count
action approx
action union
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type still waters
action find_tuple_counts
relation located next to body of water
type administrative territorial entity
type waterway
value 2
[{'concept': 'administrative territorial entity'}, 'located next to body of water', [{'concept': 'still waters'}, {'concept': 'waterway'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?v ) AS ?b ) WHERE { VALUES ( ?w ) { ( ontology:still_waters ) ( ontology:waterway ) } . ?v rdf:type ?w } GROUP BY ?c } . FILTER ( ?b = 2 ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q24027211
P532
Q56061 Q2235308
USER
Which ship types have more number of administrative territories as their base harbour than Industry ?
(c(Q2235308),P532,c(Q56061))
action greater
action find_tuple_counts
relation P532
type Q2235308
type Q56061
action count
action filter_type
action find
entity Q24027211
relation P532
type Q2235308
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?r ) AS ?h ) WHERE { ?s rdf:type ontology:Q2235308 . ?r rdf:type ontology:Q56061 . ?s property:P532 ?r } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { ?o rdf:type ontology:Q2235308 . resource:Q24027211 property:P532 ?o } } . FILTER ( ?h > ?a ) }
Industry
action greater
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
action count
action filter_type
action find
entity Industry
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?r ) AS ?h ) WHERE { ?s rdf:type ontology:ship_type . ?r rdf:type ontology:administrative_territorial_entity . ?s property:port_of_registry ?r } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { ?o rdf:type ontology:ship_type . resource:Industry property:port_of_registry ?o } } . FILTER ( ?h > ?a ) }
[]
administrative territorial entity ship type
Q2596850 Q468026 Q35462
SYSTEM
MS Azura, SS Maxim Gorkiy, RMS Aquitania
Q2992316 Q2301456 Q983141 Q133606 Q26988086 Q168474 Q300311 Q20489530 Q5338632 Q7499755 Q2124429 Q1293488 Q1017179 Q7120838 Q7393546 Q25173 Q14493958 Q18128240 Q664284 Q26988094 Q21196329 Q10659251 Q477173 Q130373 Q19608222 Q11707059 Q1026780 Q22342351 Q15662618 Q33209 Q1514518 Q2596850 Q16854668 Q1325547 Q761593 Q26883829 Q2124449 Q778649 Q3952367 Q11705702 Q24039469 Q751584 Q6930211 Q16629249 Q497065 Q3053251 Q468026 Q1439419 Q23579589 Q4686475 Q26987769 Q11891639 Q321007 Q6720006 Q741803 Q338340 Q7120888 Q215692 Q917188 Q18213370 Q1129910 Q2714360 Q16852551 Q1514126 Q18711004 Q1339472 Q3558075 Q192381 Q493616 Q35462
(c(Q2235308),P532,c(Q56061))
action greater
action find_tuple_counts
relation P532
type Q2235308
type Q56061
action count
action filter_type
action find
entity Q24027211
relation P532
type Q2235308
[ANSWERS] have more number of administrative territories as their base harbour than Industry
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?r ) AS ?h ) WHERE { ?s rdf:type ontology:Q2235308 . ?r rdf:type ontology:Q56061 . ?s property:P532 ?r } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { ?o rdf:type ontology:Q2235308 . resource:Q24027211 property:P532 ?o } } . FILTER ( ?h > ?a ) }
HSC Condor Rapide MS Viking XPRS MY Sam Simon MS Star Meteora MV Arctic Sunrise A MS Harmony of the Seas Edith Mærsk Shoalway RMS Samaria MV Esperanza SS Burutu PS Empress Queen SS Empire Airman RMS Titanic Mærsk Mc-Kinney Møller MS Quantum of the Seas Pioneering Spirit Emma Victory SS Argentina S/S Drottningholm Emma Mærsk Admiral Makarov HSC Condor Liberation MS Arrow SS California Modern Express Djurgården 8 Mary Celeste Sapphire Princess MS Azura Mein Schiff 4 MT Mastera CMA CGM Marco Polo VOS Sympathy RMS St Helena Eclipse MS Norman Atlantic MV Ascension HSC Highspeed 5 MS Express Samina msy Wind Song Varnek (ship, 1974-2010) MV Baltic Ace Empire Sandy SS Maxim Gorkiy Vitus Bering MV Christinaki Adventure British Explorer SS Coccolita RMS Olympic MV Royal Daffodil RMS Mauretania MV Boudicca SS Prince of Wales HMHS Britannic MS Brilliance of the Seas Anthem of the Seas SS Potsdam MS Empress MS Epsilon MS Marco Polo MV Hoegh Osaka RMS Empress of Ireland Vieux Crabe MS Oasis of the Seas Royal Clipper RMS Aquitania
MS Azura, SS Maxim Gorkiy and RMS Aquitania have more number of administrative territories as their base harbour than Industry
MS Azura SS Maxim Gorkiy RMS Aquitania
action greater
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
action count
action filter_type
action find
entity Industry
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?r ) AS ?h ) WHERE { ?s rdf:type ontology:ship_type . ?r rdf:type ontology:administrative_territorial_entity . ?s property:port_of_registry ?r } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { ?o rdf:type ontology:ship_type . resource:Industry property:port_of_registry ?o } } . FILTER ( ?h > ?a ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q24026984
P532
Q56061 Q2235308
USER
And what about Clara?
(c(Q2235308),P532,c(Q56061))
action greater
action find_tuple_counts
relation P532
type Q2235308
type Q56061
action count
action filter_type
action find
entity Q24026984
relation P532
type Q2235308
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) WHERE { resource:Q24026984 property:P532 ?c . ?c rdf:type ontology:Q2235308 } } . FILTER ( ?v > ?u ) . { SELECT DISTINCT ?i ( COUNT ( ?b ) AS ?v ) WHERE { ?i rdf:type ontology:Q2235308 . ?b rdf:type ontology:Q56061 . ?i property:P532 ?b } GROUP BY ?i } }
Clara
action greater
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
action count
action filter_type
action find
entity Clara
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) WHERE { resource:Clara property:port_of_registry ?c . ?c rdf:type ontology:ship_type } } . FILTER ( ?v > ?u ) . { SELECT DISTINCT ?i ( COUNT ( ?b ) AS ?v ) WHERE { ?i rdf:type ontology:ship_type . ?b rdf:type ontology:administrative_territorial_entity . ?i property:port_of_registry ?b } GROUP BY ?i } }
[]
administrative territorial entity ship type
Q2596850 Q468026 Q35462
SYSTEM
MS Azura, SS Maxim Gorkiy, RMS Aquitania
Q2992316 Q2301456 Q983141 Q133606 Q26988086 Q168474 Q300311 Q20489530 Q5338632 Q7499755 Q2124429 Q1293488 Q1017179 Q7120838 Q7393546 Q25173 Q14493958 Q18128240 Q664284 Q26988094 Q21196329 Q10659251 Q477173 Q130373 Q19608222 Q11707059 Q1026780 Q22342351 Q15662618 Q33209 Q1514518 Q2596850 Q16854668 Q1325547 Q761593 Q26883829 Q2124449 Q778649 Q3952367 Q11705702 Q24039469 Q751584 Q6930211 Q16629249 Q497065 Q3053251 Q468026 Q1439419 Q23579589 Q4686475 Q26987769 Q11891639 Q321007 Q6720006 Q741803 Q338340 Q7120888 Q215692 Q917188 Q18213370 Q1129910 Q2714360 Q16852551 Q1514126 Q18711004 Q1339472 Q3558075 Q192381 Q493616 Q35462
(c(Q2235308),P532,c(Q56061))
action greater
action find_tuple_counts
relation P532
type Q2235308
type Q56061
action count
action filter_type
action find
entity Q24026984
relation P532
type Q2235308
[ANSWERS]
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) WHERE { resource:Q24026984 property:P532 ?c . ?c rdf:type ontology:Q2235308 } } . FILTER ( ?v > ?u ) . { SELECT DISTINCT ?i ( COUNT ( ?b ) AS ?v ) WHERE { ?i rdf:type ontology:Q2235308 . ?b rdf:type ontology:Q56061 . ?i property:P532 ?b } GROUP BY ?i } }
HSC Condor Rapide MS Viking XPRS MY Sam Simon MS Star Meteora MV Arctic Sunrise A MS Harmony of the Seas Edith Mærsk Shoalway RMS Samaria MV Esperanza SS Burutu PS Empress Queen SS Empire Airman RMS Titanic Mærsk Mc-Kinney Møller MS Quantum of the Seas Pioneering Spirit Emma Victory SS Argentina S/S Drottningholm Emma Mærsk Admiral Makarov HSC Condor Liberation MS Arrow SS California Modern Express Djurgården 8 Mary Celeste Sapphire Princess MS Azura Mein Schiff 4 MT Mastera CMA CGM Marco Polo VOS Sympathy RMS St Helena Eclipse MS Norman Atlantic MV Ascension HSC Highspeed 5 MS Express Samina msy Wind Song Varnek (ship, 1974-2010) MV Baltic Ace Empire Sandy SS Maxim Gorkiy Vitus Bering MV Christinaki Adventure British Explorer SS Coccolita RMS Olympic MV Royal Daffodil RMS Mauretania MV Boudicca SS Prince of Wales HMHS Britannic MS Brilliance of the Seas Anthem of the Seas SS Potsdam MS Empress MS Epsilon MS Marco Polo MV Hoegh Osaka RMS Empress of Ireland Vieux Crabe MS Oasis of the Seas Royal Clipper RMS Aquitania
MS Azura SS Maxim Gorkiy RMS Aquitania
action greater
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
action count
action filter_type
action find
entity Clara
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) WHERE { resource:Clara property:port_of_registry ?c . ?c rdf:type ontology:ship_type } } . FILTER ( ?v > ?u ) . { SELECT DISTINCT ?i ( COUNT ( ?b ) AS ?v ) WHERE { ?i rdf:type ontology:ship_type . ?b rdf:type ontology:administrative_territorial_entity . ?i property:port_of_registry ?b } GROUP BY ?i } }
[]