Question: What subject pertains to the statement that San Marino (which borders Italy) has an official language of Italian?
Choices:
Israel–Sweden relations
Germany-Algeria relations
languages of San Marino
Mexico–Ukraine relations
Ethiopia–Kenya border
Iran–Uzbekistan relations
New Zealand–Turkey relations
Canada–Iceland relations
Bangladesh–Mali relations
South Korea–United States relations
Program:
function: Find
inputs: Italy
function: Relate
dependencies: 0
inputs: shares border with
forward
function: Find
inputs: San Marino
function: And
dependencies: 1
2
function: Find
inputs: Italian
function: QueryRelationQualifier
dependencies: 3
4
inputs: official language
statement is subject of
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "San Marino" . ?e_3 <shares_border_with> ?e_1 . ?e_3 <pred:name> "Italy" . ?e_2 <pred:name> "Italian" . ?e_1 <official_language> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <official_language> ; <pred:fact_t> ?e_2 ] <statement_is_subject_of> ?qpv .  }
Answer: languages of San Marino